package com.app.controller;

import com.app.mapper.akesai.*;
import com.app.mapper.dunhuang.*;
import com.app.mapper.guazhou.*;
import com.app.mapper.jinta.*;
import com.app.mapper.jiuquan.UserMapper;
import com.app.mapper.subei.*;
import com.app.mapper.suzhou.*;
import com.app.mapper.yumen.*;
import com.app.model.*;
import com.app.service.BrowseNumberSuzhouService;
import com.app.util.*;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.*;

@RestController
@Controller
@RequestMapping("/jiuquan/jiaoben")
public class ScriptController {

    @Autowired
    UserMapper userMapper;
    @Autowired
    UserSuzhouMapper userSuzhouMapper;
    @Autowired
    BrowseNumberSuzhouMapper browseNumberSuzhouMapper;
    @Autowired
    BrowseNumberJintaMapper browseNumberJintaMapper;
    @Autowired
    BrowseNumberDunhuangMapper browseNumberDunhuangMapper;
    @Autowired
    BrowseNumberGuazhouMapper browseNumberGuazhouMapper;
    @Autowired
    BrowseNumberYumenMapper browseNumberYumenMapper;
    @Autowired
    BrowseNumberSubeiMapper browseNumberSubeiMapper;
    @Autowired
    BrowseNumberAkesaiMapper browseNumberAkesaiMapper;
    @Autowired
    CustomerSuzhouMapper customerSuzhouMapper;
    @Autowired
    CustomerJintaMapper customerJintaMapper;
    @Autowired
    CustomerDunhuangMapper customerDunhuangMapper;

    @Autowired
    CustomerGuazhouMapper customerGuazhouMapper;
    @Autowired
    CustomerYumenMapper customerYumenMapper;
    @Autowired
    CustomerSubeiMapper customerSubeiMapper;
    @Autowired
    CustomerAkesaiMapper customerAkesaiMapper;
    @Autowired
    ComRecruitersSuzhouMapper comRecruitersSuzhouMapper;
    @Autowired
    ComRecruitersJintaMapper comRecruitersJintaMapper;
    @Autowired
    ComRecruitersDunhuangMapper comRecruitersDunhuangMapper;
    @Autowired
    ComRecruitersGuazhouMapper comRecruitersGuazhouMapper;
    @Autowired
    ComRecruitersYumenMapper comRecruitersYumenMapper;
    @Autowired
    ComRecruitersSubeiMapper comRecruitersSubeiMapper;
    @Autowired
    ComRecruitersAkesaiMapper comRecruitersAkesaiMapper;
    @Autowired
    EnterpriseSuzhouMapper enterpriseSuzhouMapper;
    @Autowired
    EnterpriseJintaMapper enterpriseJintaMapper;
    @Autowired
    EnterpriseDunhuangMapper enterpriseDunhuangMapper;
    @Autowired
    EnterpriseGuazhouMapper enterpriseGuazhouMapper;
    @Autowired
    EnterpriseYumenMapper enterpriseYumenMapper;
    @Autowired
    EnterpriseSubeiMapper enterpriseSubeiMapper;
    @Autowired
    EnterpriseAkesaiMapper enterpriseAkesaiMapper;
    @Autowired
    JobPublishSuzhouMapper jobPublishSuzhouMapper;
    @Autowired
    JobAdditionalJintaMapper jobAdditionalJintaMapper;
    @Autowired
    JobAdditionalDunhuangMapper jobAdditionalDunhuangMapper;
    @Autowired
    JobAdditionalGuazhouMapper jobAdditionalGuazhouMapper;
    @Autowired
    JobAdditionalYumenMapper jobAdditionalYumenMapper;
    @Autowired
    JobAdditionalSubeiMapper jobAdditionalSubeiMapper;
    @Autowired
    JobAdditionalAkesaiMapper jobAdditionalAkesaiMapper;
    @Autowired
    JobIntentionJintaMapper jobIntentionJintaMapper;
    @Autowired
    JobIntentionDunhuangMapper jobIntentionDunhuangMapper;
    @Autowired
    JobIntentionGuazhouMapper jobIntentionGuazhouMapper;
    @Autowired
    JobIntentionYumenMapper jobIntentionYumenMapper;
    @Autowired
    JobIntentionSubeiMapper jobIntentionSubeiMapper;
    @Autowired
    JobIntentionAkesaiMapper jobIntentionAkesaiMapper;
    @Autowired
    JobIntentionSuzhouMapper jobIntentionSuzhouMapper;
    @Autowired
    JobFairSceneSuzhouMapper jobFairSceneSuzhouMapper;
    @Autowired
    JobFairSceneJintaMapper jobFairSceneJintaMapper;
    @Autowired
    JobFairSceneDunhuangMapper jobFairSceneDunhuangMapper;
    @Autowired
    JobFairSceneGuazhouMapper jobFairSceneGuazhouMapper;
    @Autowired
    JobFairSceneYumenMapper jobFairSceneYumenMapper;
    @Autowired
    JobFairSceneSubeiMapper jobFairSceneSubeiMapper;
    @Autowired
    JobFairSceneAkesaiMapper jobFairSceneAkesaiMapper;
    @Autowired
    NewsJintaMapper newsJintaMapper;
    @Autowired
    NewsDunhuangMapper newsDunhuangMapper;
    @Autowired
    NewsGuazhouMapper newsGuazhouMapper;
    @Autowired
    NewsYumenMapper newsYumenMapper;
    @Autowired
    NewsYumenMapper newsSubeiMapper;
    @Autowired
    NewsAkesaiMapper newsAkesaiMapper;
    @Autowired
    NewsSuzhouMapper newsSuzhouMapper;
    @Autowired
    WorkApplyJintaMapper workApplyJintaMapper;
    @Autowired
    WorkApplyDunhuangMapper workApplyDunhuangMapper;
    @Autowired
    WorkApplyGuazhouMapper workApplyGuazhouMapper;
    @Autowired
    WorkApplyYumenMapper workApplyYumenMapper;
    @Autowired
    WorkApplySubeiMapper workApplySubeiMapper;
    @Autowired
    WorkApplyAkesaiMapper workApplyAkesaiMapper;
    @Autowired
    WorkApplySuzhouMapper workApplySuzhouMapper;
    @Autowired
    JobAdditionalSuzhouMapper jobAdditionalSuzhouMapper;
    @Autowired
    ComResumeNumberSuzhouMapper comResumeNumberSuzhouMapper;
    @Autowired
    JobPublishJintaMapper jobPublishJintaMapper;
    @Autowired
    JobPublishDunhuangMapper jobPublishDunhuangMapper;
    @Autowired
    JobPublishGuazhouMapper jobPublishGuazhouMapper;
    @Autowired
    JobPublishYumenMapper jobPublishYumenMapper;
    @Autowired
    JobPublishSubeiMapper jobPublishSubeiMapper;
    @Autowired
    JobPublishAkesaiMapper jobPublishAkesaiMapper;
    @Autowired
    ComResumeNumberJintaMapper comResumeNumberJintaMapper;

    @Autowired
    ComResumeNumberDunhuangMapper comResumeNumberDunhuangMapper;
    @Autowired
    ComResumeNumberGuazhouMapper comResumeNumberGuazhouMapper;
    @Autowired
    ComResumeNumberYumenMapper comResumeNumberYumenMapper;
    @Autowired
    ComResumeNumberSubeiMapper comResumeNumberSubeiMapper;
    @Autowired
    ComResumeNumberAkesaiMapper comResumeNumberAkesaiMapper;
    @Autowired
    CusEducationJintaMapper cusEducationJintaMapper;

    @Autowired
    CusEducationDunhuangMapper cusEducationDunhuangMapper;
    @Autowired
    CusEducationGuazhouMapper cusEducationGuazhouMapper;
    @Autowired
    CusEducationYumenMapper cusEducationYumenMapper;
    @Autowired
    CusEducationSubeiMapper cusEducationSubeiMapper;
    @Autowired
    CusEducationAkesaiMapper cusEducationAkesaiMapper;
    @Autowired
    CusEducationSuzhouMapper cusEducationSuzhouMapper;

    @Autowired
    CusItemExpSuzhouMapper cusItemExpSuzhouMapper;
    @Autowired
    CusItemExpJintaMapper cusItemExpJintaMapper;
    @Autowired
    CusItemExpDunhuangMapper cusItemExpDunhuangMapper;
    @Autowired
    CusItemExpGuazhouMapper cusItemExpGuazhouMapper;
    @Autowired
    CusItemExpYumenMapper cusItemExpYumenMapper;
    @Autowired
    CusItemExpSubeiMapper cusItemExpSubeiMapper;
    @Autowired
    CusItemExpAkesaiMapper cusItemExpAkesaiMapper;
    @Autowired
    CusResumeLangskillJintaMapper cusResumeLangskillJintaMapper;
    @Autowired
    CusResumeLangskillDunhuangMapper cusResumeLangskillDunhuangMapper;
    @Autowired
    CusResumeLangskillGuazhouMapper cusResumeLangskillGuazhouMapper;
    @Autowired
    CusResumeLangskillYumenMapper cusResumeLangskillYumenMapper;
    @Autowired
    CusResumeLangskillSubeiMapper cusResumeLangskillSubeiMapper;
    @Autowired
    CusResumeLangskillAkesaiMapper cusResumeLangskillAkesaiMapper;
    @Autowired
    CusWorkExperienceJintaMapper cusWorkExperienceJintaMapper;

    @Autowired
    CusWorkExperienceDunhuangMapper cusWorkExperienceDunhuangMapper;
    @Autowired
    CusWorkExperienceGuazhouMapper cusWorkExperienceGuazhouMapper;
    @Autowired
    CusWorkExperienceYumenMapper cusWorkExperienceYumenMapper;
    @Autowired
    CusWorkExperienceSubeiMapper cusWorkExperienceSubeiMapper;
    @Autowired
    CusWorkExperienceAkesaiMapper cusWorkExperienceAkesaiMapper;
    @Autowired
    CusWorkExperienceSuzhouMapper cusWorkExperienceSuzhouMapper;
    @Autowired
    CusResumeLangskillSuzhouMapper cusResumeLangskillSuzhouMapper;
    @Autowired
    JobFollowSuzhouMapper jobFollowSuzhouMapper;
    @Autowired
    JobFollowJintaMapper jobFollowJintaMapper;

    @Autowired
    JobFollowDunhuangMapper jobFollowDunhuangMapper;
    @Autowired
    JobFollowGuazhouMapper jobFollowGuazhouMapper;
    @Autowired
    JobFollowYumenMapper jobFollowYumenMapper;
    @Autowired
    JobFollowSubeiMapper jobFollowSubeiMapper;
    @Autowired
    JobFollowAkesaiMapper jobFollowAkesaiMapper;
    @Autowired
    private UserJintaMapper userJintaMapper;
    @Autowired
    private UserDunhuangMapper userDunhuangMapper;
    @Autowired
    private UserGuazhouMapper userGuazhouMapper;
    @Autowired
    private UserYumenMapper userYumenMapper;
    @Autowired
    private UserSubeiMapper userSubeiMapper;
    @Autowired
    private UserAkesaiMapper userAkesaiMapper;




    @GetMapping("/jintaSynchronization")
    public Result<Object> synchronization(
            HttpServletRequest request) throws Exception {
        List<UserModel> jintaUserList = userJintaMapper.selectList(null);//金塔用户
        List<BrowseNumberModel> browseNumberModelList = browseNumberJintaMapper.selectList(null);//访问量
        List<CustomerModel> customerJintaModelList = customerJintaMapper.selectList(null);//个人用户金塔
        List<ComRecruitersModel> comRecruitersModelList = comRecruitersJintaMapper.selectList(null);//企业用户
        List<EnterpriseModel> enterpriseModelList = enterpriseJintaMapper.selectList(null);//企业
        List<JobPublishModel> jobPublishModelList = jobPublishJintaMapper.selectList(null);//岗位
        List<ComResumeNumberModel> comResumeNumberModelList = comResumeNumberJintaMapper.selectList(null);
        List<CusEducationModel> cusEducationModelList = cusEducationJintaMapper.selectList(null);
        List<CusItemExpModel> cusItemExpModelList = cusItemExpJintaMapper.selectList(null);
        List<CusResumeLangModel> cusResumeLangModelList = cusResumeLangskillJintaMapper.selectList(null);
        List<CusWorkExperienceModel> cusWorkExperienceModelList = cusWorkExperienceJintaMapper.selectList(null);
        List<JobFollowModel> jobFollowModelList = jobFollowJintaMapper.selectList(null);
        List<JobAdditionalModel> jobAdditionalModelList = jobAdditionalJintaMapper.selectList(null);
        List<JobIntentionModel> jobIntentionModelList = jobIntentionJintaMapper.selectList(null);
        List<JobFairSceneModel> jobFairSceneModelList = jobFairSceneJintaMapper.selectList(null);
        List<NewsModel> newsModelList = newsJintaMapper.selectList(null);
        List<WorkApplyModel> workApplyModelList = workApplyJintaMapper.selectList(null);
        for (UserModel model : jintaUserList) {
            UserModel user = new UserModel();
            user = model;
            UserModel userModel2 = userSuzhouMapper.selectById(Integer.valueOf(20921 + "" + user.getId()));
            if (userModel2 == null) {
                user.setId(Integer.valueOf(20921 + "" + user.getId()));
                if (user.getCId() != null && user.getCId() != 0) {
                    user.setCId(Integer.valueOf(20921 + "" + user.getCId()));
                }
                if (user.getRId() != null && user.getRId() != 0) {
                    user.setRId(Integer.valueOf(20921 + "" + user.getRId()));
                }
                UserModel userModel = userSuzhouMapper.getModelByMobile(user.getMobile());
                if (userModel == null) {
                    user.setAddressId(620921);
                    userSuzhouMapper.insert(user);
                }
            }

        }

        for (CustomerModel model : customerJintaModelList) {
            CustomerModel customerModel = new CustomerModel();
            customerModel = model;
            CustomerModel customerModel2 = customerSuzhouMapper.selectById(Integer.valueOf(20921 + "" + customerModel.getId()));
            if (customerModel2 == null) {
                customerModel.setId(Integer.parseInt(20921 + "" + customerModel.getId()));
                customerModel.setAddressId(620921);
                customerSuzhouMapper.insert(customerModel);
            }

        }

        for (ComRecruitersModel recruitersModel : comRecruitersModelList) {
            ComRecruitersModel comRecruitersModel = new ComRecruitersModel();
            comRecruitersModel = recruitersModel;
            ComRecruitersModel comRecruitersModel2 = comRecruitersSuzhouMapper.selectById(Integer.valueOf(20921 + "" + comRecruitersModel.getId()));
            if (comRecruitersModel2 == null) {
                comRecruitersModel.setId(Integer.valueOf(20921 + "" + comRecruitersModel.getId()));
                comRecruitersModel.setComId(Integer.valueOf(20921 + "" + comRecruitersModel.getComId()));
                comRecruitersModel.setAddressId(620921);
                comRecruitersSuzhouMapper.insert(comRecruitersModel);
            }

        }
//        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
//            browseNumberModel.setId(0);
//            if(browseNumberModel.getUserId()!=null&&browseNumberModel.getUserId()!=0)
//            {
//                browseNumberModel.setUserId(Integer.parseInt(20921 + "" + browseNumberModel.getUserId()));
//            }
//            browseNumberModel.setAddressId(620921);
//            browseNumberSuzhouMapper.insert(browseNumberModel);
//        }

        for (EnterpriseModel model : enterpriseModelList) {
            EnterpriseModel enterpriseModel = new EnterpriseModel();
            enterpriseModel = model;
            EnterpriseModel enterpriseModel2 = enterpriseSuzhouMapper.selectById(Integer.valueOf(20921 + "" + enterpriseModel.getId()));
            if (enterpriseModel2 == null) {
                enterpriseModel.setId(Integer.valueOf(20921 + "" + enterpriseModel.getId()));
                enterpriseModel.setAddressId(620921);
                enterpriseSuzhouMapper.insert(enterpriseModel);
            }

        }
        for (JobPublishModel publishModel : jobPublishModelList) {

            JobPublishModel jobPublishModel = new JobPublishModel();
            jobPublishModel = publishModel;
            JobPublishModel jobPublishModel2 = jobPublishSuzhouMapper.selectById(Integer.valueOf(20921 + "" + jobPublishModel.getId()));
            if (jobPublishModel2 == null) {
                jobPublishModel.setId(Integer.valueOf(20921 + "" + jobPublishModel.getId()));
                jobPublishModel.setEnrollId(Integer.valueOf(20921 + "" + jobPublishModel.getEnrollId()));
                jobPublishModel.setRecId(Integer.valueOf(20921 + "" + jobPublishModel.getRecId()));
                jobPublishModel.setAddressId(620921);
                jobPublishSuzhouMapper.insert(jobPublishModel);
            }

        }
        for (ComResumeNumberModel resumeNumberModel : comResumeNumberModelList) {
            ComResumeNumberModel comResumeNumberModel = new ComResumeNumberModel();
            comResumeNumberModel = resumeNumberModel;
            ComResumeNumberModel comResumeNumberModel2 = comResumeNumberSuzhouMapper.selectById(Integer.valueOf(20921 + "" + comResumeNumberModel.getId()));
            if (comResumeNumberModel2 == null) {
                comResumeNumberModel.setId(Integer.parseInt(20921 + "" + comResumeNumberModel.getId()));
                comResumeNumberModel.setComId(Integer.parseInt(20921 + "" + comResumeNumberModel.getComId()));
                comResumeNumberModel.setRid(Integer.parseInt(20921 + "" + comResumeNumberModel.getRid()));
                comResumeNumberModel.setPid(Integer.parseInt(20921 + "" + comResumeNumberModel.getPid()));
                comResumeNumberSuzhouMapper.insert(comResumeNumberModel);
            }


        }

        for (CusEducationModel educationModel : cusEducationModelList) {
            CusEducationModel cusEducationModel = new CusEducationModel();
            cusEducationModel = educationModel;
            CusEducationModel cusEducationModel2 = cusEducationSuzhouMapper.selectById(Integer.valueOf(20921 + "" + cusEducationModel.getId()));
            if (cusEducationModel2 == null) {
                cusEducationModel.setId(Integer.parseInt(20921 + "" + cusEducationModel.getId()));
                cusEducationModel.setCustomerId(Integer.parseInt(20921 + "" + cusEducationModel.getCustomerId()));
                cusEducationSuzhouMapper.insert(cusEducationModel);
            }

        }

        for (CusItemExpModel cusItemExpModel : cusItemExpModelList) {
            CusItemExpModel cusItemExpModel2 = cusItemExpSuzhouMapper.selectById(Integer.valueOf(20921 + "" + cusItemExpModel.getId()));
            if (cusItemExpModel2 == null) {
                cusItemExpModel.setId(Integer.parseInt(20921 + "" + cusItemExpModel.getId()));
                cusItemExpModel.setCustomerId(Integer.parseInt(20921 + "" + cusItemExpModel.getCustomerId()));
                cusItemExpSuzhouMapper.insert(cusItemExpModel);
            }

        }

        for (CusResumeLangModel cusResumeLangModel : cusResumeLangModelList) {
            CusResumeLangModel cusResumeLangModel2 = cusResumeLangskillSuzhouMapper.selectById(Integer.valueOf(20921 + "" + cusResumeLangModel.getId()));
            if (cusResumeLangModel2 == null) {
                cusResumeLangModel.setId(Integer.parseInt(20921 + "" + cusResumeLangModel.getId()));
                cusResumeLangModel.setCustomerId(Integer.parseInt(20921 + "" + cusResumeLangModel.getCustomerId()));
                cusResumeLangskillSuzhouMapper.insert(cusResumeLangModel);
            }

        }

        for (CusWorkExperienceModel cusWorkExperienceModel : cusWorkExperienceModelList) {
            CusWorkExperienceModel cusWorkExperienceModel2 = cusWorkExperienceSuzhouMapper.selectById(Integer.valueOf(20921 + "" + cusWorkExperienceModel.getId()));
            if (cusWorkExperienceModel2 == null) {
                cusWorkExperienceModel.setId(Integer.parseInt(20921 + "" + cusWorkExperienceModel.getId()));
                cusWorkExperienceModel.setCustomerId(Integer.parseInt(20921 + "" + cusWorkExperienceModel.getCustomerId()));
                cusWorkExperienceSuzhouMapper.insert(cusWorkExperienceModel);
            }


        }

        for (JobFollowModel followModel : jobFollowModelList) {
            JobFollowModel jobFollowModel = new JobFollowModel();
            jobFollowModel = followModel;
            JobFollowModel jobFollowModel2 = jobFollowSuzhouMapper.selectById(Integer.valueOf(20921 + "" + jobFollowModel.getId()));
            if (jobFollowModel2 == null) {
                jobFollowModel.setId(Integer.parseInt(20921 + "" + jobFollowModel.getId()));
                jobFollowModel.setCid(Integer.parseInt(20921 + "" + jobFollowModel.getCid()));
                jobFollowModel.setPid(Integer.parseInt(20921 + "" + jobFollowModel.getPid()));
                jobFollowModel.setRid(Integer.parseInt(20921 + "" + jobFollowModel.getRid()));
                jobFollowSuzhouMapper.insert(jobFollowModel);
            }

        }

        for (JobAdditionalModel jobAdditionalModel : jobAdditionalModelList) {
            JobAdditionalModel jobAdditionalModel2 = jobAdditionalSuzhouMapper.selectById(Integer.valueOf(20921 + "" + jobAdditionalModel.getId()));
            if (jobAdditionalModel2 == null) {
                jobAdditionalModel.setId(Integer.parseInt(20921 + "" + jobAdditionalModel.getId()));
                jobAdditionalModel.setCusId(Integer.parseInt(20921 + "" + jobAdditionalModel.getCusId()));
                jobAdditionalSuzhouMapper.insert(jobAdditionalModel);
            }
        }

        for (JobIntentionModel jobIntentionModel : jobIntentionModelList) {
            JobIntentionModel jobIntentionModel2 = jobIntentionSuzhouMapper.selectById(Integer.valueOf(20921 + "" + jobIntentionModel.getId()));
            if (jobIntentionModel2 == null) {
                jobIntentionModel.setId(Integer.parseInt(20921 + "" + jobIntentionModel.getId()));
                jobIntentionModel.setCustomerId(Integer.parseInt(20921 + "" + jobIntentionModel.getCustomerId()));
                jobIntentionModel.setAddressId(620921);

                jobIntentionSuzhouMapper.insert(jobIntentionModel);
            }

        }
        for (JobFairSceneModel jobFairSceneModel : jobFairSceneModelList) {
            JobFairSceneModel jobFairSceneModel2 = jobFairSceneSuzhouMapper.selectById(Integer.valueOf(20921 + "" + jobFairSceneModel.getId()));
            if (jobFairSceneModel2 == null) {
                jobFairSceneModel.setId(Integer.parseInt(20921 + "" + jobFairSceneModel.getId()));
                jobFairSceneModel.setAddressId(620921);
                jobFairSceneSuzhouMapper.insert(jobFairSceneModel);
            }
        }
        for (NewsModel newsModel : newsModelList) {
            NewsModel newsModel2 = newsSuzhouMapper.selectById(Integer.valueOf(20921 + "" + newsModel.getId()));
            if (newsModel2 == null) {
                newsModel.setId(Integer.parseInt(20921 + "" + newsModel.getId()));
                newsModel.setAddressId(620921);
                newsSuzhouMapper.insert(newsModel);
            }
        }
        for (WorkApplyModel workApplyModel : workApplyModelList) {
            WorkApplyModel workApplyModel2 = workApplySuzhouMapper.selectById(Integer.valueOf(20921 + "" + workApplyModel.getId()));
            if (workApplyModel2 == null) {
                workApplyModel.setId(Integer.parseInt(20921 + "" + workApplyModel.getId()));
                workApplyModel.setPublishId(Integer.parseInt(20921 + "" + workApplyModel.getPublishId()));
                workApplyModel.setCustomerId(Integer.parseInt(20921 + "" + workApplyModel.getCustomerId()));
                workApplyModel.setEId(Integer.parseInt(20921 + "" + workApplyModel.getEId()));
                workApplySuzhouMapper.insert(workApplyModel);
            }
        }

        return Result.success("操作成功");
    }

    @GetMapping("/dunhuangSynchronization")
    public Result<Object> dunhuang(
            HttpServletRequest request) throws Exception {
        List<UserModel> jintaUserList = userDunhuangMapper.selectList(null);//金塔用户
        List<BrowseNumberModel> browseNumberModelList = browseNumberDunhuangMapper.selectList(null);//访问量
        List<CustomerModel> customerJintaModelList = customerDunhuangMapper.selectList(null);//个人用户金塔
        List<ComRecruitersModel> comRecruitersModelList = comRecruitersDunhuangMapper.selectList(null);//企业用户
        List<EnterpriseModel> enterpriseModelList = enterpriseDunhuangMapper.selectList(null);//企业
        List<JobPublishModel> jobPublishModelList = jobPublishDunhuangMapper.selectList(null);//岗位
        List<ComResumeNumberModel> comResumeNumberModelList = comResumeNumberDunhuangMapper.selectList(null);
        List<CusEducationModel> cusEducationModelList = cusEducationDunhuangMapper.selectList(null);
        List<CusItemExpModel> cusItemExpModelList = cusItemExpDunhuangMapper.selectList(null);
        List<CusResumeLangModel> cusResumeLangModelList = cusResumeLangskillDunhuangMapper.selectList(null);
        List<CusWorkExperienceModel> cusWorkExperienceModelList = cusWorkExperienceDunhuangMapper.selectList(null);
        List<JobFollowModel> jobFollowModelList = jobFollowDunhuangMapper.selectList(null);
        List<JobAdditionalModel> jobAdditionalModelList = jobAdditionalDunhuangMapper.selectList(null);
        List<JobIntentionModel> jobIntentionModelList = jobIntentionDunhuangMapper.selectList(null);
        List<JobFairSceneModel> jobFairSceneModelList = jobFairSceneDunhuangMapper.selectList(null);
        List<NewsModel> newsModelList = newsDunhuangMapper.selectList(null);
        List<WorkApplyModel> workApplyModelList = workApplyDunhuangMapper.selectList(null);
        for (UserModel model : jintaUserList) {
            UserModel user = new UserModel();
            user = model;
            UserModel userModel2 = userSuzhouMapper.selectById(Integer.valueOf(20982 + "" + user.getId()));
            if (userModel2 == null) {
                user.setId(Integer.valueOf(20982 + "" + user.getId()));
                if (user.getCId() != null && user.getCId() != 0) {
                    user.setCId(Integer.valueOf(20982 + "" + user.getCId()));
                }
                if (user.getRId() != null && user.getRId() != 0) {
                    user.setRId(Integer.valueOf(20982 + "" + user.getRId()));
                }
                UserModel userModel = userSuzhouMapper.getModelByMobile(user.getMobile());
                if (userModel == null) {
                    user.setAddressId(620982);
                    userSuzhouMapper.insert(user);
                }
            }

        }

        for (CustomerModel model : customerJintaModelList) {
            CustomerModel customerModel = new CustomerModel();
            customerModel = model;
            CustomerModel customerModel2 = customerSuzhouMapper.selectById(Integer.valueOf(20982 + "" + customerModel.getId()));
            if (customerModel2 == null) {
                customerModel.setId(Integer.parseInt(20982 + "" + customerModel.getId()));
                customerModel.setAddressId(620982);
                customerSuzhouMapper.insert(customerModel);
            }

        }

        for (ComRecruitersModel recruitersModel : comRecruitersModelList) {
            ComRecruitersModel comRecruitersModel = new ComRecruitersModel();
            comRecruitersModel = recruitersModel;
            ComRecruitersModel comRecruitersModel2 = comRecruitersSuzhouMapper.selectById(Integer.valueOf(20982 + "" + comRecruitersModel.getId()));
            if (comRecruitersModel2 == null) {
                comRecruitersModel.setId(Integer.valueOf(20982 + "" + comRecruitersModel.getId()));
                comRecruitersModel.setComId(Integer.valueOf(20982 + "" + comRecruitersModel.getComId()));
                comRecruitersModel.setAddressId(620982);
                comRecruitersSuzhouMapper.insert(comRecruitersModel);
            }

        }
//        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
//            browseNumberModel.setId(0);
//            if(browseNumberModel.getUserId()!=null&&browseNumberModel.getUserId()!=0)
//            {
//                browseNumberModel.setUserId(Integer.parseInt(20982 + "" + browseNumberModel.getUserId()));
//            }
//            browseNumberModel.setAddressId(20982);
//            browseNumberSuzhouMapper.insert(browseNumberModel);
//        }

        for (EnterpriseModel model : enterpriseModelList) {
            EnterpriseModel enterpriseModel = new EnterpriseModel();
            enterpriseModel = model;
            EnterpriseModel enterpriseModel2 = enterpriseSuzhouMapper.selectById(Integer.valueOf(20982 + "" + enterpriseModel.getId()));
            if (enterpriseModel2 == null) {
                enterpriseModel.setId(Integer.valueOf(20982 + "" + enterpriseModel.getId()));
                enterpriseModel.setAddressId(620982);
                enterpriseSuzhouMapper.insert(enterpriseModel);
            }

        }
        for (JobPublishModel publishModel : jobPublishModelList) {

            JobPublishModel jobPublishModel = new JobPublishModel();
            jobPublishModel = publishModel;
            JobPublishModel jobPublishModel2 = jobPublishSuzhouMapper.selectById(Integer.valueOf(20982 + "" + jobPublishModel.getId()));
            if (jobPublishModel2 == null) {
                jobPublishModel.setId(Integer.valueOf(20982 + "" + jobPublishModel.getId()));
                jobPublishModel.setEnrollId(Integer.valueOf(20982 + "" + jobPublishModel.getEnrollId()));
                jobPublishModel.setRecId(Integer.valueOf(20982 + "" + jobPublishModel.getRecId()));
                jobPublishModel.setAddressId(620982);
                jobPublishSuzhouMapper.insert(jobPublishModel);
            }

        }
        for (ComResumeNumberModel resumeNumberModel : comResumeNumberModelList) {
            ComResumeNumberModel comResumeNumberModel = new ComResumeNumberModel();
            comResumeNumberModel = resumeNumberModel;
            ComResumeNumberModel comResumeNumberModel2 = comResumeNumberSuzhouMapper.selectById(Integer.valueOf(20982 + "" + comResumeNumberModel.getId()));
            if (comResumeNumberModel2 == null) {
                comResumeNumberModel.setId(Integer.parseInt(20982 + "" + comResumeNumberModel.getId()));
                comResumeNumberModel.setComId(Integer.parseInt(20982 + "" + comResumeNumberModel.getComId()));
                comResumeNumberModel.setRid(Integer.parseInt(20982 + "" + comResumeNumberModel.getRid()));
                comResumeNumberModel.setPid(Integer.parseInt(20982 + "" + comResumeNumberModel.getPid()));
                comResumeNumberSuzhouMapper.insert(comResumeNumberModel);
            }


        }

        for (CusEducationModel educationModel : cusEducationModelList) {
            CusEducationModel cusEducationModel = new CusEducationModel();
            cusEducationModel = educationModel;
            CusEducationModel cusEducationModel2 = cusEducationSuzhouMapper.selectById(Integer.valueOf(20982 + "" + cusEducationModel.getId()));
            if (cusEducationModel2 == null) {
                cusEducationModel.setId(Integer.parseInt(20982 + "" + cusEducationModel.getId()));
                cusEducationModel.setCustomerId(Integer.parseInt(20982 + "" + cusEducationModel.getCustomerId()));
                cusEducationSuzhouMapper.insert(cusEducationModel);
            }

        }

        for (CusItemExpModel cusItemExpModel : cusItemExpModelList) {
            CusItemExpModel cusItemExpModel2 = cusItemExpSuzhouMapper.selectById(Integer.valueOf(20982 + "" + cusItemExpModel.getId()));
            if (cusItemExpModel2 == null) {
                cusItemExpModel.setId(Integer.parseInt(20982 + "" + cusItemExpModel.getId()));
                cusItemExpModel.setCustomerId(Integer.parseInt(20982 + "" + cusItemExpModel.getCustomerId()));
                cusItemExpSuzhouMapper.insert(cusItemExpModel);
            }

        }

        for (CusResumeLangModel cusResumeLangModel : cusResumeLangModelList) {
            CusResumeLangModel cusResumeLangModel2 = cusResumeLangskillSuzhouMapper.selectById(Integer.valueOf(20982 + "" + cusResumeLangModel.getId()));
            if (cusResumeLangModel2 == null) {
                cusResumeLangModel.setId(Integer.parseInt(20982 + "" + cusResumeLangModel.getId()));
                cusResumeLangModel.setCustomerId(Integer.parseInt(20982 + "" + cusResumeLangModel.getCustomerId()));
                cusResumeLangskillSuzhouMapper.insert(cusResumeLangModel);
            }

        }

        for (CusWorkExperienceModel cusWorkExperienceModel : cusWorkExperienceModelList) {
            CusWorkExperienceModel cusWorkExperienceModel2 = cusWorkExperienceSuzhouMapper.selectById(Integer.valueOf(20982 + "" + cusWorkExperienceModel.getId()));
            if (cusWorkExperienceModel2 == null) {
                cusWorkExperienceModel.setId(Integer.parseInt(20982 + "" + cusWorkExperienceModel.getId()));
                cusWorkExperienceModel.setCustomerId(Integer.parseInt(20982 + "" + cusWorkExperienceModel.getCustomerId()));
                cusWorkExperienceSuzhouMapper.insert(cusWorkExperienceModel);
            }


        }

        for (JobFollowModel followModel : jobFollowModelList) {
            JobFollowModel jobFollowModel = new JobFollowModel();
            jobFollowModel = followModel;
            JobFollowModel jobFollowModel2 = jobFollowSuzhouMapper.selectById(Integer.valueOf(20982 + "" + jobFollowModel.getId()));
            if (jobFollowModel2 == null) {
                jobFollowModel.setId(Integer.parseInt(20982 + "" + jobFollowModel.getId()));
                jobFollowModel.setCid(Integer.parseInt(20982 + "" + jobFollowModel.getCid()));
                jobFollowModel.setPid(Integer.parseInt(20982 + "" + jobFollowModel.getPid()));
                jobFollowModel.setRid(Integer.parseInt(20982 + "" + jobFollowModel.getRid()));
                jobFollowSuzhouMapper.insert(jobFollowModel);
            }

        }

        for (JobAdditionalModel jobAdditionalModel : jobAdditionalModelList) {
            JobAdditionalModel jobAdditionalModel2 = jobAdditionalSuzhouMapper.selectById(Integer.valueOf(20982 + "" + jobAdditionalModel.getId()));
            if (jobAdditionalModel2 == null) {
                jobAdditionalModel.setId(Integer.parseInt(20982 + "" + jobAdditionalModel.getId()));
                jobAdditionalModel.setCusId(Integer.parseInt(20982 + "" + jobAdditionalModel.getCusId()));
                jobAdditionalSuzhouMapper.insert(jobAdditionalModel);
            }
        }

        for (JobIntentionModel jobIntentionModel : jobIntentionModelList) {
            JobIntentionModel jobIntentionModel2 = jobIntentionSuzhouMapper.selectById(Integer.valueOf(20982 + "" + jobIntentionModel.getId()));
            if (jobIntentionModel2 == null) {
                jobIntentionModel.setId(Integer.parseInt(20982 + "" + jobIntentionModel.getId()));
                jobIntentionModel.setCustomerId(Integer.parseInt(20982 + "" + jobIntentionModel.getCustomerId()));
                jobIntentionModel.setAddressId(620982);

                jobIntentionSuzhouMapper.insert(jobIntentionModel);
            }

        }
        for (JobFairSceneModel jobFairSceneModel : jobFairSceneModelList) {
            JobFairSceneModel jobFairSceneModel2 = jobFairSceneSuzhouMapper.selectById(Integer.valueOf(20982 + "" + jobFairSceneModel.getId()));
            if (jobFairSceneModel2 == null) {
                jobFairSceneModel.setId(Integer.parseInt(20982 + "" + jobFairSceneModel.getId()));
                jobFairSceneModel.setAddressId(620982);
                jobFairSceneSuzhouMapper.insert(jobFairSceneModel);
            }
        }
        for (NewsModel newsModel : newsModelList) {
            NewsModel newsModel2 = newsSuzhouMapper.selectById(Integer.valueOf(20982 + "" + newsModel.getId()));
            if (newsModel2 == null) {
                newsModel.setId(Integer.parseInt(20982 + "" + newsModel.getId()));
                newsModel.setAddressId(620982);
                newsSuzhouMapper.insert(newsModel);
            }
        }
        for (WorkApplyModel workApplyModel : workApplyModelList) {
            WorkApplyModel workApplyModel2 = workApplySuzhouMapper.selectById(Integer.valueOf(20982 + "" + workApplyModel.getId()));
            if (workApplyModel2 == null) {
                workApplyModel.setId(Integer.parseInt(20982 + "" + workApplyModel.getId()));
                workApplyModel.setPublishId(Integer.parseInt(20982 + "" + workApplyModel.getPublishId()));
                workApplyModel.setCustomerId(Integer.parseInt(20982 + "" + workApplyModel.getCustomerId()));
                workApplyModel.setEId(Integer.parseInt(20982 + "" + workApplyModel.getEId()));
                workApplySuzhouMapper.insert(workApplyModel);
            }
        }

        return Result.success("操作成功");
    }

    @GetMapping("/guazhouSynchronization")
    public Result<Object> guazhouSynchronization(
            HttpServletRequest request) throws Exception {
        List<UserModel> jintaUserList = userGuazhouMapper.selectList(null);//金塔用户
        List<BrowseNumberModel> browseNumberModelList = browseNumberGuazhouMapper.selectList(null);//访问量
        List<CustomerModel> customerJintaModelList = customerGuazhouMapper.selectList(null);//个人用户金塔
        List<ComRecruitersModel> comRecruitersModelList = comRecruitersGuazhouMapper.selectList(null);//企业用户
        List<EnterpriseModel> enterpriseModelList = enterpriseGuazhouMapper.selectList(null);//企业
        List<JobPublishModel> jobPublishModelList = jobPublishGuazhouMapper.selectList(null);//岗位
        List<ComResumeNumberModel> comResumeNumberModelList = comResumeNumberGuazhouMapper.selectList(null);
        List<CusEducationModel> cusEducationModelList = cusEducationGuazhouMapper.selectList(null);
        List<CusItemExpModel> cusItemExpModelList = cusItemExpGuazhouMapper.selectList(null);
        List<CusResumeLangModel> cusResumeLangModelList = cusResumeLangskillGuazhouMapper.selectList(null);
        List<CusWorkExperienceModel> cusWorkExperienceModelList = cusWorkExperienceGuazhouMapper.selectList(null);
        List<JobFollowModel> jobFollowModelList = jobFollowGuazhouMapper.selectList(null);
        List<JobAdditionalModel> jobAdditionalModelList = jobAdditionalGuazhouMapper.selectList(null);
        List<JobIntentionModel> jobIntentionModelList = jobIntentionGuazhouMapper.selectList(null);
        List<JobFairSceneModel> jobFairSceneModelList = jobFairSceneGuazhouMapper.selectList(null);
        List<NewsModel> newsModelList = newsGuazhouMapper.selectList(null);
        List<WorkApplyModel> workApplyModelList = workApplyGuazhouMapper.selectList(null);
        for (UserModel model : jintaUserList) {
            UserModel user = new UserModel();
            user = model;
            UserModel userModel2 = userSuzhouMapper.selectById(Integer.valueOf(20922 + "" + user.getId()));
            if (userModel2 == null) {
                user.setId(Integer.valueOf(20922 + "" + user.getId()));
                if (user.getCId() != null && user.getCId() != 0) {
                    user.setCId(Integer.valueOf(20922 + "" + user.getCId()));
                }
                if (user.getRId() != null && user.getRId() != 0) {
                    user.setRId(Integer.valueOf(20922 + "" + user.getRId()));
                }
                UserModel userModel = userSuzhouMapper.getModelByMobile(user.getMobile());
                if (userModel == null) {
                    user.setAddressId(620922);
                    userSuzhouMapper.insert(user);
                }
            }

        }

        for (CustomerModel model : customerJintaModelList) {
            CustomerModel customerModel = new CustomerModel();
            customerModel = model;
            CustomerModel customerModel2 = customerSuzhouMapper.selectById(Integer.valueOf(20922 + "" + customerModel.getId()));
            if (customerModel2 == null) {
                customerModel.setId(Integer.parseInt(20922 + "" + customerModel.getId()));
                customerModel.setAddressId(620922);
                customerSuzhouMapper.insert(customerModel);
            }

        }

        for (ComRecruitersModel recruitersModel : comRecruitersModelList) {
            ComRecruitersModel comRecruitersModel = new ComRecruitersModel();
            comRecruitersModel = recruitersModel;
            ComRecruitersModel comRecruitersModel2 = comRecruitersSuzhouMapper.selectById(Integer.valueOf(20922 + "" + comRecruitersModel.getId()));
            if (comRecruitersModel2 == null) {
                comRecruitersModel.setId(Integer.valueOf(20922 + "" + comRecruitersModel.getId()));
                comRecruitersModel.setComId(Integer.valueOf(20922 + "" + comRecruitersModel.getComId()));
                comRecruitersModel.setAddressId(620922);
                comRecruitersSuzhouMapper.insert(comRecruitersModel);
            }

        }
//        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
//            browseNumberModel.setId(0);
//            if(browseNumberModel.getUserId()!=null&&browseNumberModel.getUserId()!=0)
//            {
//                browseNumberModel.setUserId(Integer.parseInt(20922 + "" + browseNumberModel.getUserId()));
//            }
//            browseNumberModel.setAddressId(20922);
//            browseNumberSuzhouMapper.insert(browseNumberModel);
//        }

        for (EnterpriseModel model : enterpriseModelList) {
            EnterpriseModel enterpriseModel = new EnterpriseModel();
            enterpriseModel = model;
            EnterpriseModel enterpriseModel2 = enterpriseSuzhouMapper.selectById(Integer.valueOf(20922 + "" + enterpriseModel.getId()));
            if (enterpriseModel2 == null) {
                enterpriseModel.setId(Integer.valueOf(20922 + "" + enterpriseModel.getId()));
                enterpriseModel.setAddressId(620922);
                enterpriseSuzhouMapper.insert(enterpriseModel);
            }

        }
        for (JobPublishModel publishModel : jobPublishModelList) {

            JobPublishModel jobPublishModel = new JobPublishModel();
            jobPublishModel = publishModel;
            JobPublishModel jobPublishModel2 = jobPublishSuzhouMapper.selectById(Integer.valueOf(20922 + "" + jobPublishModel.getId()));
            if (jobPublishModel2 == null) {
                jobPublishModel.setId(Integer.valueOf(20922 + "" + jobPublishModel.getId()));
                jobPublishModel.setEnrollId(Integer.valueOf(20922 + "" + jobPublishModel.getEnrollId()));
                jobPublishModel.setRecId(Integer.valueOf(20922 + "" + jobPublishModel.getRecId()));
                jobPublishModel.setAddressId(620922);
                jobPublishSuzhouMapper.insert(jobPublishModel);
            }

        }
        for (ComResumeNumberModel resumeNumberModel : comResumeNumberModelList) {
            ComResumeNumberModel comResumeNumberModel = new ComResumeNumberModel();
            comResumeNumberModel = resumeNumberModel;
            ComResumeNumberModel comResumeNumberModel2 = comResumeNumberSuzhouMapper.selectById(Integer.valueOf(20922 + "" + comResumeNumberModel.getId()));
            if (comResumeNumberModel2 == null) {
                comResumeNumberModel.setId(Integer.parseInt(20922 + "" + comResumeNumberModel.getId()));
                comResumeNumberModel.setComId(Integer.parseInt(20922 + "" + comResumeNumberModel.getComId()));
                comResumeNumberModel.setRid(Integer.parseInt(20922 + "" + comResumeNumberModel.getRid()));
                comResumeNumberModel.setPid(Integer.parseInt(20922 + "" + comResumeNumberModel.getPid()));
                comResumeNumberSuzhouMapper.insert(comResumeNumberModel);
            }


        }

        for (CusEducationModel educationModel : cusEducationModelList) {
            CusEducationModel cusEducationModel = new CusEducationModel();
            cusEducationModel = educationModel;
            CusEducationModel cusEducationModel2 = cusEducationSuzhouMapper.selectById(Integer.valueOf(20922 + "" + cusEducationModel.getId()));
            if (cusEducationModel2 == null) {
                cusEducationModel.setId(Integer.parseInt(20922 + "" + cusEducationModel.getId()));
                cusEducationModel.setCustomerId(Integer.parseInt(20922 + "" + cusEducationModel.getCustomerId()));
                cusEducationSuzhouMapper.insert(cusEducationModel);
            }

        }

        for (CusItemExpModel cusItemExpModel : cusItemExpModelList) {
            CusItemExpModel cusItemExpModel2 = cusItemExpSuzhouMapper.selectById(Integer.valueOf(20922 + "" + cusItemExpModel.getId()));
            if (cusItemExpModel2 == null) {
                cusItemExpModel.setId(Integer.parseInt(20922 + "" + cusItemExpModel.getId()));
                cusItemExpModel.setCustomerId(Integer.parseInt(20922 + "" + cusItemExpModel.getCustomerId()));
                cusItemExpSuzhouMapper.insert(cusItemExpModel);
            }

        }

        for (CusResumeLangModel cusResumeLangModel : cusResumeLangModelList) {
            CusResumeLangModel cusResumeLangModel2 = cusResumeLangskillSuzhouMapper.selectById(Integer.valueOf(20922 + "" + cusResumeLangModel.getId()));
            if (cusResumeLangModel2 == null) {
                cusResumeLangModel.setId(Integer.parseInt(20922 + "" + cusResumeLangModel.getId()));
                cusResumeLangModel.setCustomerId(Integer.parseInt(20922 + "" + cusResumeLangModel.getCustomerId()));
                cusResumeLangskillSuzhouMapper.insert(cusResumeLangModel);
            }

        }

        for (CusWorkExperienceModel cusWorkExperienceModel : cusWorkExperienceModelList) {
            CusWorkExperienceModel cusWorkExperienceModel2 = cusWorkExperienceSuzhouMapper.selectById(Integer.valueOf(20922 + "" + cusWorkExperienceModel.getId()));
            if (cusWorkExperienceModel2 == null) {
                cusWorkExperienceModel.setId(Integer.parseInt(20922 + "" + cusWorkExperienceModel.getId()));
                cusWorkExperienceModel.setCustomerId(Integer.parseInt(20922 + "" + cusWorkExperienceModel.getCustomerId()));
                cusWorkExperienceSuzhouMapper.insert(cusWorkExperienceModel);
            }


        }

        for (JobFollowModel followModel : jobFollowModelList) {
            JobFollowModel jobFollowModel = new JobFollowModel();
            jobFollowModel = followModel;
            JobFollowModel jobFollowModel2 = jobFollowSuzhouMapper.selectById(Integer.valueOf(20922 + "" + jobFollowModel.getId()));
            if (jobFollowModel2 == null) {
                jobFollowModel.setId(Integer.parseInt(20922 + "" + jobFollowModel.getId()));
                jobFollowModel.setCid(Integer.parseInt(20922 + "" + jobFollowModel.getCid()));
                jobFollowModel.setPid(Integer.parseInt(20922 + "" + jobFollowModel.getPid()));
                jobFollowModel.setRid(Integer.parseInt(20922 + "" + jobFollowModel.getRid()));
                jobFollowSuzhouMapper.insert(jobFollowModel);
            }

        }

        for (JobAdditionalModel jobAdditionalModel : jobAdditionalModelList) {
            JobAdditionalModel jobAdditionalModel2 = jobAdditionalSuzhouMapper.selectById(Integer.valueOf(20922 + "" + jobAdditionalModel.getId()));
            if (jobAdditionalModel2 == null) {
                jobAdditionalModel.setId(Integer.parseInt(20922 + "" + jobAdditionalModel.getId()));
                jobAdditionalModel.setCusId(Integer.parseInt(20922 + "" + jobAdditionalModel.getCusId()));
                jobAdditionalSuzhouMapper.insert(jobAdditionalModel);
            }
        }

        for (JobIntentionModel jobIntentionModel : jobIntentionModelList) {
            JobIntentionModel jobIntentionModel2 = jobIntentionSuzhouMapper.selectById(Integer.valueOf(20922 + "" + jobIntentionModel.getId()));
            if (jobIntentionModel2 == null) {
                jobIntentionModel.setId(Integer.parseInt(20922 + "" + jobIntentionModel.getId()));
                jobIntentionModel.setCustomerId(Integer.parseInt(20922 + "" + jobIntentionModel.getCustomerId()));
                jobIntentionModel.setAddressId(620922);

                jobIntentionSuzhouMapper.insert(jobIntentionModel);
            }

        }
        for (JobFairSceneModel jobFairSceneModel : jobFairSceneModelList) {
            JobFairSceneModel jobFairSceneModel2 = jobFairSceneSuzhouMapper.selectById(Integer.valueOf(20922 + "" + jobFairSceneModel.getId()));
            if (jobFairSceneModel2 == null) {
                jobFairSceneModel.setId(Integer.parseInt(20922 + "" + jobFairSceneModel.getId()));
                jobFairSceneModel.setAddressId(620922);
                jobFairSceneSuzhouMapper.insert(jobFairSceneModel);
            }
        }
        for (NewsModel newsModel : newsModelList) {
            NewsModel newsModel2 = newsSuzhouMapper.selectById(Integer.valueOf(20922 + "" + newsModel.getId()));
            if (newsModel2 == null) {
                newsModel.setId(Integer.parseInt(20922 + "" + newsModel.getId()));
                newsModel.setAddressId(620922);
                newsSuzhouMapper.insert(newsModel);
            }
        }
        for (WorkApplyModel workApplyModel : workApplyModelList) {
            WorkApplyModel workApplyModel2 = workApplySuzhouMapper.selectById(Integer.valueOf(20922 + "" + workApplyModel.getId()));
            if (workApplyModel2 == null) {
                workApplyModel.setId(Integer.parseInt(20922 + "" + workApplyModel.getId()));
                workApplyModel.setPublishId(Integer.parseInt(20922 + "" + workApplyModel.getPublishId()));
                workApplyModel.setCustomerId(Integer.parseInt(20922 + "" + workApplyModel.getCustomerId()));
                workApplyModel.setEId(Integer.parseInt(20922 + "" + workApplyModel.getEId()));
                workApplySuzhouMapper.insert(workApplyModel);
            }
        }

        return Result.success("操作成功");
    }

    @GetMapping("/yumenSynchronization")
    public Result<Object> yumenSynchronization(
            HttpServletRequest request) throws Exception {
        List<UserModel> jintaUserList = userYumenMapper.selectList(null);//金塔用户
        List<BrowseNumberModel> browseNumberModelList = browseNumberYumenMapper.selectList(null);//访问量
        List<CustomerModel> customerJintaModelList = customerYumenMapper.selectList(null);//个人用户金塔
        List<ComRecruitersModel> comRecruitersModelList = comRecruitersYumenMapper.selectList(null);//企业用户
        List<EnterpriseModel> enterpriseModelList = enterpriseYumenMapper.selectList(null);//企业
        List<JobPublishModel> jobPublishModelList = jobPublishYumenMapper.selectList(null);//岗位
        List<ComResumeNumberModel> comResumeNumberModelList = comResumeNumberYumenMapper.selectList(null);
        List<CusEducationModel> cusEducationModelList = cusEducationYumenMapper.selectList(null);
        List<CusItemExpModel> cusItemExpModelList = cusItemExpYumenMapper.selectList(null);
        List<CusResumeLangModel> cusResumeLangModelList = cusResumeLangskillYumenMapper.selectList(null);
        List<CusWorkExperienceModel> cusWorkExperienceModelList = cusWorkExperienceYumenMapper.selectList(null);
        List<JobFollowModel> jobFollowModelList = jobFollowYumenMapper.selectList(null);
        List<JobAdditionalModel> jobAdditionalModelList = jobAdditionalYumenMapper.selectList(null);
        List<JobIntentionModel> jobIntentionModelList = jobIntentionYumenMapper.selectList(null);
        List<JobFairSceneModel> jobFairSceneModelList = jobFairSceneYumenMapper.selectList(null);
        List<NewsModel> newsModelList = newsYumenMapper.selectList(null);
        List<WorkApplyModel> workApplyModelList = workApplyYumenMapper.selectList(null);
        for (UserModel model : jintaUserList) {
            UserModel user = new UserModel();
            user = model;
            UserModel userModel2 = userSuzhouMapper.selectById(Integer.valueOf(20981 + "" + user.getId()));
            if (userModel2 == null) {
                user.setId(Integer.valueOf(20981 + "" + user.getId()));
                if (user.getCId() != null && user.getCId() != 0) {
                    user.setCId(Integer.valueOf(20981 + "" + user.getCId()));
                }
                if (user.getRId() != null && user.getRId() != 0) {
                    user.setRId(Integer.valueOf(20981 + "" + user.getRId()));
                }
                UserModel userModel = userSuzhouMapper.getModelByMobile(user.getMobile());
                if (userModel == null) {
                    user.setAddressId(620981);
                    userSuzhouMapper.insert(user);
                }
            }

        }

        for (CustomerModel model : customerJintaModelList) {
            CustomerModel customerModel = new CustomerModel();
            customerModel = model;
            CustomerModel customerModel2 = customerSuzhouMapper.selectById(Integer.valueOf(20981 + "" + customerModel.getId()));
            if (customerModel2 == null) {
                customerModel.setId(Integer.parseInt(20981 + "" + customerModel.getId()));
                customerModel.setAddressId(620981);
                customerSuzhouMapper.insert(customerModel);
            }

        }

        for (ComRecruitersModel recruitersModel : comRecruitersModelList) {
            ComRecruitersModel comRecruitersModel = new ComRecruitersModel();
            comRecruitersModel = recruitersModel;
            ComRecruitersModel comRecruitersModel2 = comRecruitersSuzhouMapper.selectById(Integer.valueOf(20981 + "" + comRecruitersModel.getId()));
            if (comRecruitersModel2 == null) {
                comRecruitersModel.setId(Integer.valueOf(20981 + "" + comRecruitersModel.getId()));
                comRecruitersModel.setComId(Integer.valueOf(20981 + "" + comRecruitersModel.getComId()));
                comRecruitersModel.setAddressId(620981);
                comRecruitersSuzhouMapper.insert(comRecruitersModel);
            }

        }
//        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
//            browseNumberModel.setId(0);
//            if(browseNumberModel.getUserId()!=null&&browseNumberModel.getUserId()!=0)
//            {
//                browseNumberModel.setUserId(Integer.parseInt(20981 + "" + browseNumberModel.getUserId()));
//            }
//            browseNumberModel.setAddressId(20981);
//            browseNumberSuzhouMapper.insert(browseNumberModel);
//        }

        for (EnterpriseModel model : enterpriseModelList) {
            EnterpriseModel enterpriseModel = new EnterpriseModel();
            enterpriseModel = model;
            EnterpriseModel enterpriseModel2 = enterpriseSuzhouMapper.selectById(Integer.valueOf(20981 + "" + enterpriseModel.getId()));
            if (enterpriseModel2 == null) {
                enterpriseModel.setId(Integer.valueOf(20981 + "" + enterpriseModel.getId()));
                enterpriseModel.setAddressId(620981);
                enterpriseSuzhouMapper.insert(enterpriseModel);
            }

        }
        for (JobPublishModel publishModel : jobPublishModelList) {

            JobPublishModel jobPublishModel = new JobPublishModel();
            jobPublishModel = publishModel;
            JobPublishModel jobPublishModel2 = jobPublishSuzhouMapper.selectById(Integer.valueOf(20981 + "" + jobPublishModel.getId()));
            if (jobPublishModel2 == null) {
                jobPublishModel.setId(Integer.valueOf(20981 + "" + jobPublishModel.getId()));
                jobPublishModel.setEnrollId(Integer.valueOf(20981 + "" + jobPublishModel.getEnrollId()));
                jobPublishModel.setRecId(Integer.valueOf(20981 + "" + jobPublishModel.getRecId()));
                jobPublishModel.setAddressId(620981);
                jobPublishSuzhouMapper.insert(jobPublishModel);
            }

        }
        for (ComResumeNumberModel resumeNumberModel : comResumeNumberModelList) {
            ComResumeNumberModel comResumeNumberModel = new ComResumeNumberModel();
            comResumeNumberModel = resumeNumberModel;
            ComResumeNumberModel comResumeNumberModel2 = comResumeNumberSuzhouMapper.selectById(Integer.valueOf(20981 + "" + comResumeNumberModel.getId()));
            if (comResumeNumberModel2 == null) {
                comResumeNumberModel.setId(Integer.parseInt(20981 + "" + comResumeNumberModel.getId()));
                comResumeNumberModel.setComId(Integer.parseInt(20981 + "" + comResumeNumberModel.getComId()));
                comResumeNumberModel.setRid(Integer.parseInt(20981 + "" + comResumeNumberModel.getRid()));
                comResumeNumberModel.setPid(Integer.parseInt(20981 + "" + comResumeNumberModel.getPid()));
                comResumeNumberSuzhouMapper.insert(comResumeNumberModel);
            }


        }

        for (CusEducationModel educationModel : cusEducationModelList) {
            CusEducationModel cusEducationModel = new CusEducationModel();
            cusEducationModel = educationModel;
            CusEducationModel cusEducationModel2 = cusEducationSuzhouMapper.selectById(Integer.valueOf(20981 + "" + cusEducationModel.getId()));
            if (cusEducationModel2 == null) {
                cusEducationModel.setId(Integer.parseInt(20981 + "" + cusEducationModel.getId()));
                cusEducationModel.setCustomerId(Integer.parseInt(20981 + "" + cusEducationModel.getCustomerId()));
                cusEducationSuzhouMapper.insert(cusEducationModel);
            }

        }

        for (CusItemExpModel cusItemExpModel : cusItemExpModelList) {
            CusItemExpModel cusItemExpModel2 = cusItemExpSuzhouMapper.selectById(Integer.valueOf(20981 + "" + cusItemExpModel.getId()));
            if (cusItemExpModel2 == null) {
                cusItemExpModel.setId(Integer.parseInt(20981 + "" + cusItemExpModel.getId()));
                cusItemExpModel.setCustomerId(Integer.parseInt(20981 + "" + cusItemExpModel.getCustomerId()));
                cusItemExpSuzhouMapper.insert(cusItemExpModel);
            }

        }

        for (CusResumeLangModel cusResumeLangModel : cusResumeLangModelList) {
            CusResumeLangModel cusResumeLangModel2 = cusResumeLangskillSuzhouMapper.selectById(Integer.valueOf(20981 + "" + cusResumeLangModel.getId()));
            if (cusResumeLangModel2 == null) {
                cusResumeLangModel.setId(Integer.parseInt(20981 + "" + cusResumeLangModel.getId()));
                cusResumeLangModel.setCustomerId(Integer.parseInt(20981 + "" + cusResumeLangModel.getCustomerId()));
                cusResumeLangskillSuzhouMapper.insert(cusResumeLangModel);
            }

        }

        for (CusWorkExperienceModel cusWorkExperienceModel : cusWorkExperienceModelList) {
            CusWorkExperienceModel cusWorkExperienceModel2 = cusWorkExperienceSuzhouMapper.selectById(Integer.valueOf(20981 + "" + cusWorkExperienceModel.getId()));
            if (cusWorkExperienceModel2 == null) {
                cusWorkExperienceModel.setId(Integer.parseInt(20981 + "" + cusWorkExperienceModel.getId()));
                cusWorkExperienceModel.setCustomerId(Integer.parseInt(20981 + "" + cusWorkExperienceModel.getCustomerId()));
                cusWorkExperienceSuzhouMapper.insert(cusWorkExperienceModel);
            }


        }

        for (JobFollowModel followModel : jobFollowModelList) {
            JobFollowModel jobFollowModel = new JobFollowModel();
            jobFollowModel = followModel;
            JobFollowModel jobFollowModel2 = jobFollowSuzhouMapper.selectById(Integer.valueOf(20981 + "" + jobFollowModel.getId()));
            if (jobFollowModel2 == null) {
                jobFollowModel.setId(Integer.parseInt(20981 + "" + jobFollowModel.getId()));
                jobFollowModel.setCid(Integer.parseInt(20981 + "" + jobFollowModel.getCid()));
                jobFollowModel.setPid(Integer.parseInt(20981 + "" + jobFollowModel.getPid()));
                jobFollowModel.setRid(Integer.parseInt(20981 + "" + jobFollowModel.getRid()));
                jobFollowSuzhouMapper.insert(jobFollowModel);
            }

        }

        for (JobAdditionalModel jobAdditionalModel : jobAdditionalModelList) {
            JobAdditionalModel jobAdditionalModel2 = jobAdditionalSuzhouMapper.selectById(Integer.valueOf(20981 + "" + jobAdditionalModel.getId()));
            if (jobAdditionalModel2 == null) {
                jobAdditionalModel.setId(Integer.parseInt(20981 + "" + jobAdditionalModel.getId()));
                jobAdditionalModel.setCusId(Integer.parseInt(20981 + "" + jobAdditionalModel.getCusId()));
                jobAdditionalSuzhouMapper.insert(jobAdditionalModel);
            }
        }

        for (JobIntentionModel jobIntentionModel : jobIntentionModelList) {
            JobIntentionModel jobIntentionModel2 = jobIntentionSuzhouMapper.selectById(Integer.valueOf(20981 + "" + jobIntentionModel.getId()));
            if (jobIntentionModel2 == null) {
                jobIntentionModel.setId(Integer.parseInt(20981 + "" + jobIntentionModel.getId()));
                jobIntentionModel.setCustomerId(Integer.parseInt(20981 + "" + jobIntentionModel.getCustomerId()));
                jobIntentionModel.setAddressId(620981);

                jobIntentionSuzhouMapper.insert(jobIntentionModel);
            }

        }
        for (JobFairSceneModel jobFairSceneModel : jobFairSceneModelList) {
            JobFairSceneModel jobFairSceneModel2 = jobFairSceneSuzhouMapper.selectById(Integer.valueOf(20981 + "" + jobFairSceneModel.getId()));
            if (jobFairSceneModel2 == null) {
                jobFairSceneModel.setId(Integer.parseInt(20981 + "" + jobFairSceneModel.getId()));
                jobFairSceneModel.setAddressId(620981);
                jobFairSceneSuzhouMapper.insert(jobFairSceneModel);
            }
        }
        for (NewsModel newsModel : newsModelList) {
            NewsModel newsModel2 = newsSuzhouMapper.selectById(Integer.valueOf(20981 + "" + newsModel.getId()));
            if (newsModel2 == null) {
                newsModel.setId(Integer.parseInt(20981 + "" + newsModel.getId()));
                newsModel.setAddressId(620981);
                newsSuzhouMapper.insert(newsModel);
            }
        }
        for (WorkApplyModel workApplyModel : workApplyModelList) {
            WorkApplyModel workApplyModel2 = workApplySuzhouMapper.selectById(Integer.valueOf(20981 + "" + workApplyModel.getId()));
            if (workApplyModel2 == null) {
                workApplyModel.setId(Integer.parseInt(20981 + "" + workApplyModel.getId()));
                workApplyModel.setPublishId(Integer.parseInt(20981 + "" + workApplyModel.getPublishId()));
                workApplyModel.setCustomerId(Integer.parseInt(20981 + "" + workApplyModel.getCustomerId()));
                workApplyModel.setEId(Integer.parseInt(20981 + "" + workApplyModel.getEId()));
                workApplySuzhouMapper.insert(workApplyModel);
            }
        }

        return Result.success("操作成功");
    }

    @GetMapping("/subeiSynchronization")
    public Result<Object> subeiSynchronization(
            HttpServletRequest request) throws Exception {
        List<UserModel> jintaUserList = userSubeiMapper.selectList(null);//金塔用户
        List<BrowseNumberModel> browseNumberModelList = browseNumberSubeiMapper.selectList(null);//访问量
        List<CustomerModel> customerJintaModelList = customerSubeiMapper.selectList(null);//个人用户金塔
        List<ComRecruitersModel> comRecruitersModelList = comRecruitersSubeiMapper.selectList(null);//企业用户
        List<EnterpriseModel> enterpriseModelList = enterpriseSubeiMapper.selectList(null);//企业
        List<JobPublishModel> jobPublishModelList = jobPublishSubeiMapper.selectList(null);//岗位
        List<ComResumeNumberModel> comResumeNumberModelList = comResumeNumberSubeiMapper.selectList(null);
        List<CusEducationModel> cusEducationModelList = cusEducationSubeiMapper.selectList(null);
        List<CusItemExpModel> cusItemExpModelList = cusItemExpSubeiMapper.selectList(null);
        List<CusResumeLangModel> cusResumeLangModelList = cusResumeLangskillSubeiMapper.selectList(null);
        List<CusWorkExperienceModel> cusWorkExperienceModelList = cusWorkExperienceSubeiMapper.selectList(null);
        List<JobFollowModel> jobFollowModelList = jobFollowSubeiMapper.selectList(null);
        List<JobAdditionalModel> jobAdditionalModelList = jobAdditionalSubeiMapper.selectList(null);
        List<JobIntentionModel> jobIntentionModelList = jobIntentionSubeiMapper.selectList(null);
        List<JobFairSceneModel> jobFairSceneModelList = jobFairSceneSubeiMapper.selectList(null);
        List<NewsModel> newsModelList = newsSubeiMapper.selectList(null);
        List<WorkApplyModel> workApplyModelList = workApplySubeiMapper.selectList(null);
        for (UserModel model : jintaUserList) {
            UserModel user = new UserModel();
            user = model;
            UserModel userModel2 = userSuzhouMapper.selectById(Integer.valueOf(20923 + "" + user.getId()));
            if (userModel2 == null) {
                user.setId(Integer.valueOf(20923 + "" + user.getId()));
                if (user.getCId() != null && user.getCId() != 0) {
                    user.setCId(Integer.valueOf(20923 + "" + user.getCId()));
                }
                if (user.getRId() != null && user.getRId() != 0) {
                    user.setRId(Integer.valueOf(20923 + "" + user.getRId()));
                }
                UserModel userModel = userSuzhouMapper.getModelByMobile(user.getMobile());
                if (userModel == null) {
                    user.setAddressId(620923);
                    userSuzhouMapper.insert(user);
                }
            }

        }

        for (CustomerModel model : customerJintaModelList) {
            CustomerModel customerModel = new CustomerModel();
            customerModel = model;
            CustomerModel customerModel2 = customerSuzhouMapper.selectById(Integer.valueOf(20923 + "" + customerModel.getId()));
            if (customerModel2 == null) {
                customerModel.setId(Integer.parseInt(20923 + "" + customerModel.getId()));
                customerModel.setAddressId(620923);
                customerSuzhouMapper.insert(customerModel);
            }

        }

        for (ComRecruitersModel recruitersModel : comRecruitersModelList) {
            ComRecruitersModel comRecruitersModel = new ComRecruitersModel();
            comRecruitersModel = recruitersModel;
            ComRecruitersModel comRecruitersModel2 = comRecruitersSuzhouMapper.selectById(Integer.valueOf(20923 + "" + comRecruitersModel.getId()));
            if (comRecruitersModel2 == null) {
                comRecruitersModel.setId(Integer.valueOf(20923 + "" + comRecruitersModel.getId()));
                comRecruitersModel.setComId(Integer.valueOf(20923 + "" + comRecruitersModel.getComId()));
                comRecruitersModel.setAddressId(620923);
                comRecruitersSuzhouMapper.insert(comRecruitersModel);
            }

        }
//        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
//            browseNumberModel.setId(0);
//            if(browseNumberModel.getUserId()!=null&&browseNumberModel.getUserId()!=0)
//            {
//                browseNumberModel.setUserId(Integer.parseInt(20923 + "" + browseNumberModel.getUserId()));
//            }
//            browseNumberModel.setAddressId(20923);
//            browseNumberSuzhouMapper.insert(browseNumberModel);
//        }

        for (EnterpriseModel model : enterpriseModelList) {
            EnterpriseModel enterpriseModel = new EnterpriseModel();
            enterpriseModel = model;
            EnterpriseModel enterpriseModel2 = enterpriseSuzhouMapper.selectById(Integer.valueOf(20923 + "" + enterpriseModel.getId()));
            if (enterpriseModel2 == null) {
                enterpriseModel.setId(Integer.valueOf(20923 + "" + enterpriseModel.getId()));
                enterpriseModel.setAddressId(620923);
                enterpriseSuzhouMapper.insert(enterpriseModel);
            }

        }
        for (JobPublishModel publishModel : jobPublishModelList) {

            JobPublishModel jobPublishModel = new JobPublishModel();
            jobPublishModel = publishModel;
            JobPublishModel jobPublishModel2 = jobPublishSuzhouMapper.selectById(Integer.valueOf(20923 + "" + jobPublishModel.getId()));
            if (jobPublishModel2 == null) {
                jobPublishModel.setId(Integer.valueOf(20923 + "" + jobPublishModel.getId()));
                jobPublishModel.setEnrollId(Integer.valueOf(20923 + "" + jobPublishModel.getEnrollId()));
                jobPublishModel.setRecId(Integer.valueOf(20923 + "" + jobPublishModel.getRecId()));
                jobPublishModel.setAddressId(620923);
                jobPublishSuzhouMapper.insert(jobPublishModel);
            }

        }
        for (ComResumeNumberModel resumeNumberModel : comResumeNumberModelList) {
            ComResumeNumberModel comResumeNumberModel = new ComResumeNumberModel();
            comResumeNumberModel = resumeNumberModel;
            ComResumeNumberModel comResumeNumberModel2 = comResumeNumberSuzhouMapper.selectById(Integer.valueOf(20923 + "" + comResumeNumberModel.getId()));
            if (comResumeNumberModel2 == null) {
                comResumeNumberModel.setId(Integer.parseInt(20923 + "" + comResumeNumberModel.getId()));
                comResumeNumberModel.setComId(Integer.parseInt(20923 + "" + comResumeNumberModel.getComId()));
                comResumeNumberModel.setRid(Integer.parseInt(20923 + "" + comResumeNumberModel.getRid()));
                comResumeNumberModel.setPid(Integer.parseInt(20923 + "" + comResumeNumberModel.getPid()));
                comResumeNumberSuzhouMapper.insert(comResumeNumberModel);
            }


        }

        for (CusEducationModel educationModel : cusEducationModelList) {
            CusEducationModel cusEducationModel = new CusEducationModel();
            cusEducationModel = educationModel;
            CusEducationModel cusEducationModel2 = cusEducationSuzhouMapper.selectById(Integer.valueOf(20923 + "" + cusEducationModel.getId()));
            if (cusEducationModel2 == null) {
                cusEducationModel.setId(Integer.parseInt(20923 + "" + cusEducationModel.getId()));
                cusEducationModel.setCustomerId(Integer.parseInt(20923 + "" + cusEducationModel.getCustomerId()));
                cusEducationSuzhouMapper.insert(cusEducationModel);
            }

        }

        for (CusItemExpModel cusItemExpModel : cusItemExpModelList) {
            CusItemExpModel cusItemExpModel2 = cusItemExpSuzhouMapper.selectById(Integer.valueOf(20923 + "" + cusItemExpModel.getId()));
            if (cusItemExpModel2 == null) {
                cusItemExpModel.setId(Integer.parseInt(20923 + "" + cusItemExpModel.getId()));
                cusItemExpModel.setCustomerId(Integer.parseInt(20923 + "" + cusItemExpModel.getCustomerId()));
                cusItemExpSuzhouMapper.insert(cusItemExpModel);
            }

        }

        for (CusResumeLangModel cusResumeLangModel : cusResumeLangModelList) {
            CusResumeLangModel cusResumeLangModel2 = cusResumeLangskillSuzhouMapper.selectById(Integer.valueOf(20923 + "" + cusResumeLangModel.getId()));
            if (cusResumeLangModel2 == null) {
                cusResumeLangModel.setId(Integer.parseInt(20923 + "" + cusResumeLangModel.getId()));
                cusResumeLangModel.setCustomerId(Integer.parseInt(20923 + "" + cusResumeLangModel.getCustomerId()));
                cusResumeLangskillSuzhouMapper.insert(cusResumeLangModel);
            }

        }

        for (CusWorkExperienceModel cusWorkExperienceModel : cusWorkExperienceModelList) {
            CusWorkExperienceModel cusWorkExperienceModel2 = cusWorkExperienceSuzhouMapper.selectById(Integer.valueOf(20923 + "" + cusWorkExperienceModel.getId()));
            if (cusWorkExperienceModel2 == null) {
                cusWorkExperienceModel.setId(Integer.parseInt(20923 + "" + cusWorkExperienceModel.getId()));
                cusWorkExperienceModel.setCustomerId(Integer.parseInt(20923 + "" + cusWorkExperienceModel.getCustomerId()));
                cusWorkExperienceSuzhouMapper.insert(cusWorkExperienceModel);
            }


        }

        for (JobFollowModel followModel : jobFollowModelList) {
            JobFollowModel jobFollowModel = new JobFollowModel();
            jobFollowModel = followModel;
            JobFollowModel jobFollowModel2 = jobFollowSuzhouMapper.selectById(Integer.valueOf(20923 + "" + jobFollowModel.getId()));
            if (jobFollowModel2 == null) {
                jobFollowModel.setId(Integer.parseInt(20923 + "" + jobFollowModel.getId()));
                jobFollowModel.setCid(Integer.parseInt(20923 + "" + jobFollowModel.getCid()));
                jobFollowModel.setPid(Integer.parseInt(20923 + "" + jobFollowModel.getPid()));
                jobFollowModel.setRid(Integer.parseInt(20923 + "" + jobFollowModel.getRid()));
                jobFollowSuzhouMapper.insert(jobFollowModel);
            }

        }

        for (JobAdditionalModel jobAdditionalModel : jobAdditionalModelList) {
            JobAdditionalModel jobAdditionalModel2 = jobAdditionalSuzhouMapper.selectById(Integer.valueOf(20923 + "" + jobAdditionalModel.getId()));
            if (jobAdditionalModel2 == null) {
                jobAdditionalModel.setId(Integer.parseInt(20923 + "" + jobAdditionalModel.getId()));
                jobAdditionalModel.setCusId(Integer.parseInt(20923 + "" + jobAdditionalModel.getCusId()));
                jobAdditionalSuzhouMapper.insert(jobAdditionalModel);
            }
        }

        for (JobIntentionModel jobIntentionModel : jobIntentionModelList) {
            JobIntentionModel jobIntentionModel2 = jobIntentionSuzhouMapper.selectById(Integer.valueOf(20923 + "" + jobIntentionModel.getId()));
            if (jobIntentionModel2 == null) {
                jobIntentionModel.setId(Integer.parseInt(20923 + "" + jobIntentionModel.getId()));
                jobIntentionModel.setCustomerId(Integer.parseInt(20923 + "" + jobIntentionModel.getCustomerId()));
                jobIntentionModel.setAddressId(620923);

                jobIntentionSuzhouMapper.insert(jobIntentionModel);
            }

        }
        for (JobFairSceneModel jobFairSceneModel : jobFairSceneModelList) {
            JobFairSceneModel jobFairSceneModel2 = jobFairSceneSuzhouMapper.selectById(Integer.valueOf(20923 + "" + jobFairSceneModel.getId()));
            if (jobFairSceneModel2 == null) {
                jobFairSceneModel.setId(Integer.parseInt(20923 + "" + jobFairSceneModel.getId()));
                jobFairSceneModel.setAddressId(620923);
                jobFairSceneSuzhouMapper.insert(jobFairSceneModel);
            }
        }
        for (NewsModel newsModel : newsModelList) {
            NewsModel newsModel2 = newsSuzhouMapper.selectById(Integer.valueOf(20923 + "" + newsModel.getId()));
            if (newsModel2 == null) {
                newsModel.setId(Integer.parseInt(20923 + "" + newsModel.getId()));
                newsModel.setAddressId(620923);
                newsSuzhouMapper.insert(newsModel);
            }
        }
        for (WorkApplyModel workApplyModel : workApplyModelList) {
            WorkApplyModel workApplyModel2 = workApplySuzhouMapper.selectById(Integer.valueOf(20923 + "" + workApplyModel.getId()));
            if (workApplyModel2 == null) {
                workApplyModel.setId(Integer.parseInt(20923 + "" + workApplyModel.getId()));
                workApplyModel.setPublishId(Integer.parseInt(20923 + "" + workApplyModel.getPublishId()));
                workApplyModel.setCustomerId(Integer.parseInt(20923 + "" + workApplyModel.getCustomerId()));
                workApplyModel.setEId(Integer.parseInt(20923 + "" + workApplyModel.getEId()));
                workApplySuzhouMapper.insert(workApplyModel);
            }
        }

        return Result.success("操作成功");
    }


    @GetMapping("/tbakesaiFWRS")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> tbakesaiFWRS() throws Exception {

        List<BrowseNumberModel> browseNumberModelList = browseNumberAkesaiMapper.selectList(null);//访问量
        List<BrowseNumberModel> browseNumberModels = new ArrayList<>();
        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
            browseNumberModel.setId(0);
            if (browseNumberModel.getUserId() != null && browseNumberModel.getUserId() != 0) {
                browseNumberModel.setUserId(Integer.parseInt(20924 + "" + browseNumberModel.getUserId()));
            }
            browseNumberModel.setAddressId(20924);
            this.browseNumberSuzhouMapper.insert(browseNumberModel);
        }

        return Result.success(null);
    }


    @GetMapping("/tbDunhuangFWRS")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> tbDunhuangFWRS() throws Exception {

        List<BrowseNumberModel> browseNumberModelList = browseNumberDunhuangMapper.selectList(null);//访问量
        List<BrowseNumberModel> browseNumberModels = new ArrayList<>();
        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
            browseNumberModel.setId(0);
            if (browseNumberModel.getUserId() != null && browseNumberModel.getUserId() != 0) {
                browseNumberModel.setUserId(Integer.parseInt(20982 + "" + browseNumberModel.getUserId()));
            }
            browseNumberModel.setAddressId(20982);
            this.browseNumberSuzhouMapper.insert(browseNumberModel);
        }

        return Result.success(null);
    }


    @GetMapping("/tbGuazhouFWRS")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> tbGuazhouFWRS() throws Exception {

        List<BrowseNumberModel> browseNumberModelList = browseNumberGuazhouMapper.selectList(null);//访问量
        List<BrowseNumberModel> browseNumberModels = new ArrayList<>();
        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
            browseNumberModel.setId(0);
            if (browseNumberModel.getUserId() != null && browseNumberModel.getUserId() != 0) {
                browseNumberModel.setUserId(Integer.parseInt(20922 + "" + browseNumberModel.getUserId()));
            }
            browseNumberModel.setAddressId(20922);
            this.browseNumberSuzhouMapper.insert(browseNumberModel);
        }


        return Result.success(null);
    }

    @GetMapping("/tbJintaFWRS")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> tbJintaFWRS() throws Exception {

        List<BrowseNumberModel> browseNumberModelList = browseNumberJintaMapper.selectList(null);//访问量
        List<BrowseNumberModel> browseNumberModels = new ArrayList<>();
        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
            browseNumberModel.setId(0);
            if (browseNumberModel.getUserId() != null && browseNumberModel.getUserId() != 0) {
                browseNumberModel.setUserId(Integer.parseInt(20921 + "" + browseNumberModel.getUserId()));
            }
            browseNumberModel.setAddressId(620921);
            this.browseNumberSuzhouMapper.insert(browseNumberModel);
        }


        return Result.success(null);
    }

    @GetMapping("/tbSubeiFWRS")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> tbSubeiFWRS() throws Exception {

        List<BrowseNumberModel> browseNumberModelList = browseNumberSubeiMapper.selectList(null);//访问量
        List<BrowseNumberModel> browseNumberModels = new ArrayList<>();
        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
            browseNumberModel.setId(0);
            if (browseNumberModel.getUserId() != null && browseNumberModel.getUserId() != 0) {
                browseNumberModel.setUserId(Integer.parseInt(20923 + "" + browseNumberModel.getUserId()));
            }
            browseNumberModel.setAddressId(20923);
            this.browseNumberSuzhouMapper.insert(browseNumberModel);
        }


        return Result.success(null);
    }

    @GetMapping("/tbYumenFWRS")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> tbYumenFWRS() throws Exception {

        List<BrowseNumberModel> browseNumberModelList = browseNumberYumenMapper.selectList(null);//访问量
        List<BrowseNumberModel> browseNumberModels = new ArrayList<>();
        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
            browseNumberModel.setId(0);
            if (browseNumberModel.getUserId() != null && browseNumberModel.getUserId() != 0) {
                browseNumberModel.setUserId(Integer.parseInt(20981 + "" + browseNumberModel.getUserId()));
            }
            browseNumberModel.setAddressId(20981);
            this.browseNumberSuzhouMapper.insert(browseNumberModel);
        }


        return Result.success(null);
    }


    @GetMapping("/akesaiSynchronization")
    public Result<Object> akesaiSynchronization(
            HttpServletRequest request) throws Exception {
        List<UserModel> jintaUserList = userAkesaiMapper.selectList(null);//金塔用户
        List<BrowseNumberModel> browseNumberModelList = browseNumberAkesaiMapper.selectList(null);//访问量
        List<CustomerModel> customerJintaModelList = customerAkesaiMapper.selectList(null);//个人用户金塔
        List<ComRecruitersModel> comRecruitersModelList = comRecruitersAkesaiMapper.selectList(null);//企业用户
        List<EnterpriseModel> enterpriseModelList = enterpriseAkesaiMapper.selectList(null);//企业
        List<JobPublishModel> jobPublishModelList = jobPublishAkesaiMapper.selectList(null);//岗位
        List<ComResumeNumberModel> comResumeNumberModelList = comResumeNumberAkesaiMapper.selectList(null);
        List<CusEducationModel> cusEducationModelList = cusEducationAkesaiMapper.selectList(null);
        List<CusItemExpModel> cusItemExpModelList = cusItemExpAkesaiMapper.selectList(null);
        List<CusResumeLangModel> cusResumeLangModelList = cusResumeLangskillAkesaiMapper.selectList(null);
        List<CusWorkExperienceModel> cusWorkExperienceModelList = cusWorkExperienceAkesaiMapper.selectList(null);
        List<JobFollowModel> jobFollowModelList = jobFollowAkesaiMapper.selectList(null);
        List<JobAdditionalModel> jobAdditionalModelList = jobAdditionalAkesaiMapper.selectList(null);
        List<JobIntentionModel> jobIntentionModelList = jobIntentionAkesaiMapper.selectList(null);
        List<JobFairSceneModel> jobFairSceneModelList = jobFairSceneAkesaiMapper.selectList(null);
        List<NewsModel> newsModelList = newsAkesaiMapper.selectList(null);
        List<WorkApplyModel> workApplyModelList = workApplyAkesaiMapper.selectList(null);
        for (UserModel model : jintaUserList) {
            UserModel user = new UserModel();
            user = model;
            UserModel userModel2 = userSuzhouMapper.selectById(Integer.valueOf(20924 + "" + user.getId()));
            if (userModel2 == null) {
                user.setId(Integer.valueOf(20924 + "" + user.getId()));
                if (user.getCId() != null && user.getCId() != 0) {
                    user.setCId(Integer.valueOf(20924 + "" + user.getCId()));
                }
                if (user.getRId() != null && user.getRId() != 0) {
                    user.setRId(Integer.valueOf(20924 + "" + user.getRId()));
                }
                UserModel userModel = userSuzhouMapper.getModelByMobile(user.getMobile());
                if (userModel == null) {
                    user.setAddressId(620924);
                    userSuzhouMapper.insert(user);
                }
            }

        }

        for (CustomerModel model : customerJintaModelList) {
            CustomerModel customerModel = new CustomerModel();
            customerModel = model;
            CustomerModel customerModel2 = customerSuzhouMapper.selectById(Integer.valueOf(20924 + "" + customerModel.getId()));
            if (customerModel2 == null) {
                customerModel.setId(Integer.parseInt(20924 + "" + customerModel.getId()));
                customerModel.setAddressId(620924);
                customerSuzhouMapper.insert(customerModel);
            }

        }

        for (ComRecruitersModel recruitersModel : comRecruitersModelList) {
            ComRecruitersModel comRecruitersModel = new ComRecruitersModel();
            comRecruitersModel = recruitersModel;
            ComRecruitersModel comRecruitersModel2 = comRecruitersSuzhouMapper.selectById(Integer.valueOf(20924 + "" + comRecruitersModel.getId()));
            if (comRecruitersModel2 == null) {
                comRecruitersModel.setId(Integer.valueOf(20924 + "" + comRecruitersModel.getId()));
                comRecruitersModel.setComId(Integer.valueOf(20924 + "" + comRecruitersModel.getComId()));
                comRecruitersModel.setAddressId(620924);
                comRecruitersSuzhouMapper.insert(comRecruitersModel);
            }

        }
//        for (BrowseNumberModel browseNumberModel : browseNumberModelList) {
//            browseNumberModel.setId(0);
//            if(browseNumberModel.getUserId()!=null&&browseNumberModel.getUserId()!=0)
//            {
//                browseNumberModel.setUserId(Integer.parseInt(20924 + "" + browseNumberModel.getUserId()));
//            }
//            browseNumberModel.setAddressId(20924);
//            browseNumberSuzhouMapper.insert(browseNumberModel);
//        }

        for (EnterpriseModel model : enterpriseModelList) {
            EnterpriseModel enterpriseModel = new EnterpriseModel();
            enterpriseModel = model;
            EnterpriseModel enterpriseModel2 = enterpriseSuzhouMapper.selectById(Integer.valueOf(20924 + "" + enterpriseModel.getId()));
            if (enterpriseModel2 == null) {
                enterpriseModel.setId(Integer.valueOf(20924 + "" + enterpriseModel.getId()));
                enterpriseModel.setAddressId(620924);
                enterpriseSuzhouMapper.insert(enterpriseModel);
            }

        }
        for (JobPublishModel publishModel : jobPublishModelList) {

            JobPublishModel jobPublishModel = new JobPublishModel();
            jobPublishModel = publishModel;
            JobPublishModel jobPublishModel2 = jobPublishSuzhouMapper.selectById(Integer.valueOf(20924 + "" + jobPublishModel.getId()));
            if (jobPublishModel2 == null) {
                jobPublishModel.setId(Integer.valueOf(20924 + "" + jobPublishModel.getId()));
                jobPublishModel.setEnrollId(Integer.valueOf(20924 + "" + jobPublishModel.getEnrollId()));
                jobPublishModel.setRecId(Integer.valueOf(20924 + "" + jobPublishModel.getRecId()));
                jobPublishModel.setAddressId(620924);
                jobPublishSuzhouMapper.insert(jobPublishModel);
            }

        }
        for (ComResumeNumberModel resumeNumberModel : comResumeNumberModelList) {
            ComResumeNumberModel comResumeNumberModel = new ComResumeNumberModel();
            comResumeNumberModel = resumeNumberModel;
            ComResumeNumberModel comResumeNumberModel2 = comResumeNumberSuzhouMapper.selectById(Integer.valueOf(20924 + "" + comResumeNumberModel.getId()));
            if (comResumeNumberModel2 == null) {
                comResumeNumberModel.setId(Integer.parseInt(20924 + "" + comResumeNumberModel.getId()));
                comResumeNumberModel.setComId(Integer.parseInt(20924 + "" + comResumeNumberModel.getComId()));
                comResumeNumberModel.setRid(Integer.parseInt(20924 + "" + comResumeNumberModel.getRid()));
                comResumeNumberModel.setPid(Integer.parseInt(20924 + "" + comResumeNumberModel.getPid()));
                comResumeNumberSuzhouMapper.insert(comResumeNumberModel);
            }


        }

        for (CusEducationModel educationModel : cusEducationModelList) {
            CusEducationModel cusEducationModel = new CusEducationModel();
            cusEducationModel = educationModel;
            CusEducationModel cusEducationModel2 = cusEducationSuzhouMapper.selectById(Integer.valueOf(20924 + "" + cusEducationModel.getId()));
            if (cusEducationModel2 == null) {
                cusEducationModel.setId(Integer.parseInt(20924 + "" + cusEducationModel.getId()));
                cusEducationModel.setCustomerId(Integer.parseInt(20924 + "" + cusEducationModel.getCustomerId()));
                cusEducationSuzhouMapper.insert(cusEducationModel);
            }

        }

        for (CusItemExpModel cusItemExpModel : cusItemExpModelList) {
            CusItemExpModel cusItemExpModel2 = cusItemExpSuzhouMapper.selectById(Integer.valueOf(20924 + "" + cusItemExpModel.getId()));
            if (cusItemExpModel2 == null) {
                cusItemExpModel.setId(Integer.parseInt(20924 + "" + cusItemExpModel.getId()));
                cusItemExpModel.setCustomerId(Integer.parseInt(20924 + "" + cusItemExpModel.getCustomerId()));
                cusItemExpSuzhouMapper.insert(cusItemExpModel);
            }

        }

        for (CusResumeLangModel cusResumeLangModel : cusResumeLangModelList) {
            CusResumeLangModel cusResumeLangModel2 = cusResumeLangskillSuzhouMapper.selectById(Integer.valueOf(20924 + "" + cusResumeLangModel.getId()));
            if (cusResumeLangModel2 == null) {
                cusResumeLangModel.setId(Integer.parseInt(20924 + "" + cusResumeLangModel.getId()));
                cusResumeLangModel.setCustomerId(Integer.parseInt(20924 + "" + cusResumeLangModel.getCustomerId()));
                cusResumeLangskillSuzhouMapper.insert(cusResumeLangModel);
            }

        }

        for (CusWorkExperienceModel cusWorkExperienceModel : cusWorkExperienceModelList) {
            CusWorkExperienceModel cusWorkExperienceModel2 = cusWorkExperienceSuzhouMapper.selectById(Integer.valueOf(20924 + "" + cusWorkExperienceModel.getId()));
            if (cusWorkExperienceModel2 == null) {
                cusWorkExperienceModel.setId(Integer.parseInt(20924 + "" + cusWorkExperienceModel.getId()));
                cusWorkExperienceModel.setCustomerId(Integer.parseInt(20924 + "" + cusWorkExperienceModel.getCustomerId()));
                cusWorkExperienceSuzhouMapper.insert(cusWorkExperienceModel);
            }


        }

        for (JobFollowModel followModel : jobFollowModelList) {
            JobFollowModel jobFollowModel = new JobFollowModel();
            jobFollowModel = followModel;
            JobFollowModel jobFollowModel2 = jobFollowSuzhouMapper.selectById(Integer.valueOf(20924 + "" + jobFollowModel.getId()));
            if (jobFollowModel2 == null) {
                jobFollowModel.setId(Integer.parseInt(20924 + "" + jobFollowModel.getId()));
                jobFollowModel.setCid(Integer.parseInt(20924 + "" + jobFollowModel.getCid()));
                jobFollowModel.setPid(Integer.parseInt(20924 + "" + jobFollowModel.getPid()));
                jobFollowModel.setRid(Integer.parseInt(20924 + "" + jobFollowModel.getRid()));
                jobFollowSuzhouMapper.insert(jobFollowModel);
            }

        }

        for (JobAdditionalModel jobAdditionalModel : jobAdditionalModelList) {
            JobAdditionalModel jobAdditionalModel2 = jobAdditionalSuzhouMapper.selectById(Integer.valueOf(20924 + "" + jobAdditionalModel.getId()));
            if (jobAdditionalModel2 == null) {
                jobAdditionalModel.setId(Integer.parseInt(20924 + "" + jobAdditionalModel.getId()));
                jobAdditionalModel.setCusId(Integer.parseInt(20924 + "" + jobAdditionalModel.getCusId()));
                jobAdditionalSuzhouMapper.insert(jobAdditionalModel);
            }
        }

        for (JobIntentionModel jobIntentionModel : jobIntentionModelList) {
            JobIntentionModel jobIntentionModel2 = jobIntentionSuzhouMapper.selectById(Integer.valueOf(20924 + "" + jobIntentionModel.getId()));
            if (jobIntentionModel2 == null) {
                jobIntentionModel.setId(Integer.parseInt(20924 + "" + jobIntentionModel.getId()));
                jobIntentionModel.setCustomerId(Integer.parseInt(20924 + "" + jobIntentionModel.getCustomerId()));
                jobIntentionModel.setAddressId(620924);

                jobIntentionSuzhouMapper.insert(jobIntentionModel);
            }

        }
        for (JobFairSceneModel jobFairSceneModel : jobFairSceneModelList) {
            JobFairSceneModel jobFairSceneModel2 = jobFairSceneSuzhouMapper.selectById(Integer.valueOf(20924 + "" + jobFairSceneModel.getId()));
            if (jobFairSceneModel2 == null) {
                jobFairSceneModel.setId(Integer.parseInt(20924 + "" + jobFairSceneModel.getId()));
                jobFairSceneModel.setAddressId(620924);
                jobFairSceneSuzhouMapper.insert(jobFairSceneModel);
            }
        }
        for (NewsModel newsModel : newsModelList) {
            NewsModel newsModel2 = newsSuzhouMapper.selectById(Integer.valueOf(20924 + "" + newsModel.getId()));
            if (newsModel2 == null) {
                newsModel.setId(Integer.parseInt(20924 + "" + newsModel.getId()));
                newsModel.setAddressId(620924);
                newsSuzhouMapper.insert(newsModel);
            }
        }
        for (WorkApplyModel workApplyModel : workApplyModelList) {
            WorkApplyModel workApplyModel2 = workApplySuzhouMapper.selectById(Integer.valueOf(20924 + "" + workApplyModel.getId()));
            if (workApplyModel2 == null) {
                workApplyModel.setId(Integer.parseInt(20924 + "" + workApplyModel.getId()));
                workApplyModel.setPublishId(Integer.parseInt(20924 + "" + workApplyModel.getPublishId()));
                workApplyModel.setCustomerId(Integer.parseInt(20924 + "" + workApplyModel.getCustomerId()));
                workApplyModel.setEId(Integer.parseInt(20924 + "" + workApplyModel.getEId()));
                workApplySuzhouMapper.insert(workApplyModel);
            }
        }

        return Result.success("操作成功");
    }


//    @Autowired
//    JinTaStreetMapper jinTaStreetMapper;

    @Autowired
    SuzhouStreetMapper suzhouStreetMapper;
//    @GetMapping("/jintaStreeId")
//    @Transactional(rollbackFor = Exception.class)
//    public Result<Object> jintaStreeId(
//            HttpServletRequest request) throws Exception {
//        String addressId="620921";
//        List<StreetModel> jintaUserList = jinTaStreetMapper.selectList(null);//金塔用户
//        for (StreetModel streetModel: jintaUserList
//             ) {
//            Integer streeId=Integer.parseInt(addressId+streetModel.getId());
//            QueryWrapper<JobPublishModel> jobPublishModelQueryWrapper=new QueryWrapper<>();
//            jobPublishModelQueryWrapper.eq("address_id",addressId);
//            jobPublishModelQueryWrapper.eq("street_id",streetModel.getId());
//            List<JobPublishModel> jobPublishModelList = jobPublishSuzhouMapper.selectList(jobPublishModelQueryWrapper);//岗位
//            for (JobPublishModel push:jobPublishModelList
//                 ) {
//                push.setStreetId(streeId);
//                this.jobPublishSuzhouMapper.updateById(push);
//            }
//            StreetModel streetModel1=new StreetModel();
//            streetModel1.setId(streeId);
//            streetModel1.setAddressId(Integer.parseInt(addressId));
//            streetModel1.setName(streetModel.getName());
//            this.suzhouStreetMapper.insert(streetModel1);
//        }
//        return Result.success("操作成功");
//    }

    @Autowired
    DunHuangStreetMapper dunHuangStreetMapper;

    @GetMapping("/dunhuangStreeId")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> dunhuangStreeId(
            HttpServletRequest request) throws Exception {
        String addressId = "620982";
        List<StreetModel> jintaUserList = dunHuangStreetMapper.selectList(null);//金塔用户
        for (StreetModel streetModel : jintaUserList
        ) {
            Integer streeId = Integer.parseInt(addressId + streetModel.getId());
            QueryWrapper<JobPublishModel> jobPublishModelQueryWrapper = new QueryWrapper<>();
            jobPublishModelQueryWrapper.eq("address_id", addressId);
            jobPublishModelQueryWrapper.eq("street_id", streetModel.getId());
            List<JobPublishModel> jobPublishModelList = jobPublishSuzhouMapper.selectList(jobPublishModelQueryWrapper);//岗位
            for (JobPublishModel push : jobPublishModelList
            ) {
                push.setStreetId(streeId);
                this.jobPublishSuzhouMapper.updateById(push);
            }
            StreetModel streetModel1 = new StreetModel();
            streetModel1.setId(streeId);
            streetModel1.setAddressId(Integer.parseInt(addressId));
            streetModel1.setName(streetModel.getName());
            this.suzhouStreetMapper.insert(streetModel1);
        }
        return Result.success("操作成功");
    }


    @Autowired
    SuBeiStreetMapper suBeiStreetMapper;


    @GetMapping("/subeiStreeId")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> subeiStreeId(
            HttpServletRequest request) throws Exception {
        String addressId = "620923";
        List<StreetModel> jintaUserList = suBeiStreetMapper.selectList(null);//金塔用户
        for (StreetModel streetModel : jintaUserList
        ) {
            Integer streeId = Integer.parseInt(addressId + streetModel.getId());
            QueryWrapper<JobPublishModel> jobPublishModelQueryWrapper = new QueryWrapper<>();
            jobPublishModelQueryWrapper.eq("address_id", addressId);
            jobPublishModelQueryWrapper.eq("street_id", streetModel.getId());
            List<JobPublishModel> jobPublishModelList = jobPublishSuzhouMapper.selectList(jobPublishModelQueryWrapper);//岗位
            for (JobPublishModel push : jobPublishModelList
            ) {
                push.setStreetId(streeId);
                this.jobPublishSuzhouMapper.updateById(push);
            }
            StreetModel streetModel1 = new StreetModel();
            streetModel1.setId(streeId);
            streetModel1.setAddressId(Integer.parseInt(addressId));
            streetModel1.setName(streetModel.getName());
            this.suzhouStreetMapper.insert(streetModel1);
        }
        return Result.success("操作成功");
    }


    @Autowired
    AkesaiStreetMapper akesaiStreetMapper;

    @GetMapping("/akesaiStreeId")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> akesaiStreeId(
            HttpServletRequest request) throws Exception {
        String addressId = "620924";
        List<StreetModel> jintaUserList = akesaiStreetMapper.selectList(null);//金塔用户
        for (StreetModel streetModel : jintaUserList
        ) {
            Integer streeId = Integer.parseInt(addressId + streetModel.getId());
            QueryWrapper<JobPublishModel> jobPublishModelQueryWrapper = new QueryWrapper<>();
            jobPublishModelQueryWrapper.eq("address_id", addressId);
            jobPublishModelQueryWrapper.eq("street_id", streetModel.getId());
            List<JobPublishModel> jobPublishModelList = jobPublishSuzhouMapper.selectList(jobPublishModelQueryWrapper);//岗位
            for (JobPublishModel push : jobPublishModelList
            ) {
                push.setStreetId(streeId);
                this.jobPublishSuzhouMapper.updateById(push);
            }
            StreetModel streetModel1 = new StreetModel();
            streetModel1.setId(streeId);
            streetModel1.setAddressId(Integer.parseInt(addressId));
            streetModel1.setName(streetModel.getName());
            this.suzhouStreetMapper.insert(streetModel1);
        }
        return Result.success("操作成功");
    }


    @Autowired
    GuaZhouStreetMapper guaZhouStreetMapper;

    @GetMapping("/guazhouStreeId")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> guazhouStreeId(
            HttpServletRequest request) throws Exception {
        String addressId = "620922";
        List<StreetModel> jintaUserList = guaZhouStreetMapper.selectList(null);//金塔用户
        for (StreetModel streetModel : jintaUserList
        ) {
            Integer streeId = Integer.parseInt(addressId + streetModel.getId());
            QueryWrapper<JobPublishModel> jobPublishModelQueryWrapper = new QueryWrapper<>();
            jobPublishModelQueryWrapper.eq("address_id", addressId);
            jobPublishModelQueryWrapper.eq("street_id", streetModel.getId());
            List<JobPublishModel> jobPublishModelList = jobPublishSuzhouMapper.selectList(jobPublishModelQueryWrapper);//岗位
            for (JobPublishModel push : jobPublishModelList
            ) {
                push.setStreetId(streeId);
                this.jobPublishSuzhouMapper.updateById(push);
            }
            StreetModel streetModel1 = new StreetModel();
            streetModel1.setId(streeId);
            streetModel1.setAddressId(Integer.parseInt(addressId));
            streetModel1.setName(streetModel.getName());
            this.suzhouStreetMapper.insert(streetModel1);
        }
        return Result.success("操作成功");
    }


    @Autowired
    YumenStreetMapper yumenStreetMapper;

    @GetMapping("/yumenStreeId")
    @Transactional(rollbackFor = Exception.class)
    public Result<Object> yumenStreeId(
            HttpServletRequest request) throws Exception {
        String addressId = "620981";
        List<StreetModel> jintaUserList = yumenStreetMapper.selectList(null);//金塔用户
        for (StreetModel streetModel : jintaUserList
        ) {
            Integer streeId = Integer.parseInt(addressId + streetModel.getId());
            QueryWrapper<JobPublishModel> jobPublishModelQueryWrapper = new QueryWrapper<>();
            jobPublishModelQueryWrapper.eq("address_id", addressId);
            jobPublishModelQueryWrapper.eq("street_id", streetModel.getId());
            List<JobPublishModel> jobPublishModelList = jobPublishSuzhouMapper.selectList(jobPublishModelQueryWrapper);//岗位
            for (JobPublishModel push : jobPublishModelList
            ) {
                push.setStreetId(streeId);
                this.jobPublishSuzhouMapper.updateById(push);
            }
            StreetModel streetModel1 = new StreetModel();
            streetModel1.setId(streeId);
            streetModel1.setAddressId(Integer.parseInt(addressId));
            streetModel1.setName(streetModel.getName());
            this.suzhouStreetMapper.insert(streetModel1);
        }
        return Result.success("操作成功");
    }


}

